mirror of https://github.com/kubernetes/kops.git
Update go deps
This commit is contained in:
parent
d95cf44cd9
commit
611fe8b595
18
go.mod
18
go.mod
|
|
@ -37,16 +37,16 @@ replace (
|
|||
require (
|
||||
cloud.google.com/go v0.81.0
|
||||
github.com/Azure/azure-pipeline-go v0.2.3
|
||||
github.com/Azure/azure-sdk-for-go v53.0.0+incompatible
|
||||
github.com/Azure/azure-sdk-for-go v53.1.0+incompatible
|
||||
github.com/Azure/azure-storage-blob-go v0.13.0
|
||||
github.com/Azure/go-autorest/autorest v0.11.18
|
||||
github.com/Azure/go-autorest/autorest/azure/auth v0.5.7
|
||||
github.com/Azure/go-autorest/autorest/to v0.4.0
|
||||
github.com/MakeNowJust/heredoc/v2 v2.0.1
|
||||
github.com/Masterminds/sprig/v3 v3.2.2
|
||||
github.com/aliyun/alibaba-cloud-sdk-go v1.61.1016
|
||||
github.com/aliyun/alibaba-cloud-sdk-go v1.61.1022
|
||||
github.com/aws/amazon-ec2-instance-selector/v2 v2.0.2
|
||||
github.com/aws/aws-sdk-go v1.38.12
|
||||
github.com/aws/aws-sdk-go v1.38.17
|
||||
github.com/blang/semver/v4 v4.0.0
|
||||
github.com/denverdino/aliyungo v0.0.0-20210318042315-546d0768f5c7
|
||||
github.com/digitalocean/godo v1.59.0
|
||||
|
|
@ -57,13 +57,13 @@ require (
|
|||
github.com/golang/protobuf v1.5.2 // indirect
|
||||
github.com/google/go-cmp v0.5.5
|
||||
github.com/google/uuid v1.2.0
|
||||
github.com/gophercloud/gophercloud v0.16.0
|
||||
github.com/gophercloud/gophercloud v0.17.0
|
||||
github.com/hashicorp/hcl/v2 v2.9.1
|
||||
github.com/hashicorp/vault/api v1.1.0
|
||||
github.com/jacksontj/memberlistmesh v0.0.0-20190905163944-93462b9d2bb7
|
||||
github.com/jetstack/cert-manager v1.2.0
|
||||
github.com/jetstack/cert-manager v1.3.0
|
||||
github.com/mitchellh/mapstructure v1.4.1
|
||||
github.com/pelletier/go-toml v1.8.1
|
||||
github.com/pelletier/go-toml v1.9.0
|
||||
github.com/pkg/sftp v1.13.0
|
||||
github.com/prometheus/client_golang v1.10.0
|
||||
github.com/sergi/go-diff v1.2.0
|
||||
|
|
@ -76,10 +76,10 @@ require (
|
|||
github.com/zclconf/go-cty v1.8.1
|
||||
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
|
||||
golang.org/x/mod v0.4.2 // indirect
|
||||
golang.org/x/net v0.0.0-20210331212208-0fccb6fa2b5c
|
||||
golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1
|
||||
golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602
|
||||
golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57
|
||||
google.golang.org/api v0.43.0
|
||||
google.golang.org/api v0.44.0
|
||||
gopkg.in/gcfg.v1 v1.2.3
|
||||
gopkg.in/inf.v0 v0.9.1
|
||||
gopkg.in/square/go-jose.v2 v2.5.1
|
||||
|
|
@ -88,7 +88,7 @@ require (
|
|||
k8s.io/apimachinery v0.21.0
|
||||
k8s.io/cli-runtime v0.21.0
|
||||
k8s.io/client-go v0.21.0
|
||||
k8s.io/cloud-provider-openstack v1.20.2
|
||||
k8s.io/cloud-provider-openstack v1.20.3
|
||||
k8s.io/component-base v0.21.0
|
||||
k8s.io/gengo v0.0.0-20210203185629-de9496dff47b
|
||||
k8s.io/klog/v2 v2.8.0
|
||||
|
|
|
|||
41
go.sum
41
go.sum
|
|
@ -47,8 +47,8 @@ github.com/Azure/azure-pipeline-go v0.2.3/go.mod h1:x841ezTBIMG6O3lAcl8ATHnsOPVl
|
|||
github.com/Azure/azure-sdk-for-go v16.2.1+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
|
||||
github.com/Azure/azure-sdk-for-go v43.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
|
||||
github.com/Azure/azure-sdk-for-go v46.3.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
|
||||
github.com/Azure/azure-sdk-for-go v53.0.0+incompatible h1:DHeVnEdW3l7C/vXSdig9IJzoEpxgukIpYDfKBq6zNSI=
|
||||
github.com/Azure/azure-sdk-for-go v53.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
|
||||
github.com/Azure/azure-sdk-for-go v53.1.0+incompatible h1:f2h0KLVGa3zIaMDMHBe5Lazc0FT5+L78z0B8K9PmDyg=
|
||||
github.com/Azure/azure-sdk-for-go v53.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
|
||||
github.com/Azure/azure-storage-blob-go v0.13.0 h1:lgWHvFh+UYBNVQLFHXkvul2f6yOPA9PIH82RTG2cSwc=
|
||||
github.com/Azure/azure-storage-blob-go v0.13.0/go.mod h1:pA9kNqtjUeQF2zOSu4s//nUdBD+e64lEuc4sVnuOfNs=
|
||||
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8=
|
||||
|
|
@ -128,7 +128,7 @@ github.com/Shopify/logrus-bugsnag v0.0.0-20171204204709-577dee27f20d h1:UrqY+r/O
|
|||
github.com/Shopify/logrus-bugsnag v0.0.0-20171204204709-577dee27f20d/go.mod h1:HI8ITrYtUY+O+ZhtlqUnD8+KwNPOyugEhfP9fdUIaEQ=
|
||||
github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=
|
||||
github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI=
|
||||
github.com/Venafi/vcert/v4 v4.11.0/go.mod h1:OE+UZ0cj8qqVUuk0u7R4GIk4ZB6JMSf/WySqnBPNwws=
|
||||
github.com/Venafi/vcert/v4 v4.13.1/go.mod h1:Z3sJFoAurFNXPpoSUSHq46aIeHLiGQEMDhprfxlpofQ=
|
||||
github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g=
|
||||
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c=
|
||||
github.com/agext/levenshtein v1.2.1 h1:QmvMAjj2aEICytGiWzmxoE0x2KZvE0fvmqMOfy2tjT8=
|
||||
|
|
@ -140,8 +140,8 @@ github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuy
|
|||
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
|
||||
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
|
||||
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
|
||||
github.com/aliyun/alibaba-cloud-sdk-go v1.61.1016 h1:XUZJvSEGwL6co52LyuDMCPhP+2xxBXcSEKi+7tOlx9s=
|
||||
github.com/aliyun/alibaba-cloud-sdk-go v1.61.1016/go.mod h1:pUKYbK5JQ+1Dfxk80P0qxGqe5dkxDoabbZS7zOcouyA=
|
||||
github.com/aliyun/alibaba-cloud-sdk-go v1.61.1022 h1:aExxhPSdw2iegClHvY8kq9dfhT1NtWIIQUXR5NNtIgo=
|
||||
github.com/aliyun/alibaba-cloud-sdk-go v1.61.1022/go.mod h1:pUKYbK5JQ+1Dfxk80P0qxGqe5dkxDoabbZS7zOcouyA=
|
||||
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8=
|
||||
github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
|
||||
github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
|
||||
|
|
@ -170,8 +170,8 @@ github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN
|
|||
github.com/aws/aws-sdk-go v1.31.12/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
|
||||
github.com/aws/aws-sdk-go v1.34.30/go.mod h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/+8rV9s48=
|
||||
github.com/aws/aws-sdk-go v1.35.24/go.mod h1:tlPOdRjfxPBpNIwqDj61rmsnA85v9jc0Ps9+muhnW+k=
|
||||
github.com/aws/aws-sdk-go v1.38.12 h1:khtODkUna3iF53Cg3dCF4e6oWgrAEbZDU4x1aq+G0WY=
|
||||
github.com/aws/aws-sdk-go v1.38.12/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
|
||||
github.com/aws/aws-sdk-go v1.38.17 h1:1OfcfEtNrphUZYa+J0U35/1hxePbb3ASSQWdFS7L0Hs=
|
||||
github.com/aws/aws-sdk-go v1.38.17/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
|
||||
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
|
||||
github.com/beorn7/perks v0.0.0-20160804104726-4c0e84591b9a/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
|
||||
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
|
||||
|
|
@ -565,8 +565,8 @@ github.com/googleapis/gnostic v0.5.4/go.mod h1:TRWw1s4gxBGjSe301Dai3c7wXJAZy57+/
|
|||
github.com/gophercloud/gophercloud v0.1.0/go.mod h1:vxM41WHh5uqHVBMZHzuwNOHh8XEoIEcSTewFxm1c5g8=
|
||||
github.com/gophercloud/gophercloud v0.6.1-0.20191122030953-d8ac278c1c9d/go.mod h1:ozGNgr9KYOVATV5jsgHl/ceCDXGuguqOZAzoQ/2vcNM=
|
||||
github.com/gophercloud/gophercloud v0.12.1-0.20200922152735-900f5ba8c05b/go.mod h1:VX0Ibx85B60B5XOrZr6kaNwrmPUzcmMpwxvQ1WQIIWM=
|
||||
github.com/gophercloud/gophercloud v0.16.0 h1:sWjPfypuzxRxjVbk3/MsU4H8jS0NNlyauZtIUl78BPU=
|
||||
github.com/gophercloud/gophercloud v0.16.0/go.mod h1:wRtmUelyIIv3CSSDI47aUwbs075O6i+LY+pXsKCBsb4=
|
||||
github.com/gophercloud/gophercloud v0.17.0 h1:BgVw0saxyeHWH5us/SQe1ltp0GRnytjmOLXDA8pO77E=
|
||||
github.com/gophercloud/gophercloud v0.17.0/go.mod h1:wRtmUelyIIv3CSSDI47aUwbs075O6i+LY+pXsKCBsb4=
|
||||
github.com/gophercloud/utils v0.0.0-20200423144003-7c72efc7435d/go.mod h1:ehWUbLQJPqS0Ep+CxeD559hsm9pthPXadJNKwZkp43w=
|
||||
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
|
||||
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
|
||||
|
|
@ -679,8 +679,8 @@ github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod
|
|||
github.com/ishidawataru/sctp v0.0.0-20190723014705-7c296d48a2b5/go.mod h1:DM4VvS+hD/kDi1U1QsX2fnZowwBhqD0Dk3bRPKF/Oc8=
|
||||
github.com/jacksontj/memberlistmesh v0.0.0-20190905163944-93462b9d2bb7 h1:q9rwMYjPWIFOSijnxXre4+RGo8xS0NVbJzXg+F0NMHc=
|
||||
github.com/jacksontj/memberlistmesh v0.0.0-20190905163944-93462b9d2bb7/go.mod h1:fFX3XoduobgoJsVtpzIFRTgKZAbNhsSJIDNOgeUU5g4=
|
||||
github.com/jetstack/cert-manager v1.2.0 h1:xgXGdvHxGwCFjB13rCQ/fwa4A7FMpPRewa3wiW++EP4=
|
||||
github.com/jetstack/cert-manager v1.2.0/go.mod h1:maDZ7RUO9H6RB+/ks9XBe8jf9zdC8cI0dGY3HBLzTVQ=
|
||||
github.com/jetstack/cert-manager v1.3.0 h1:fDKdKrZ6ZXrgNEQtVhUlvpl7jTg2TVfeWcQA1Zqlxtw=
|
||||
github.com/jetstack/cert-manager v1.3.0/go.mod h1:Hfe4GE3QuRzbrsuReQD5R3PXZqrdfJ2kZ42K67V/V0w=
|
||||
github.com/jimstudt/http-authentication v0.0.0-20140401203705-3eca13d6893a/go.mod h1:wK6yTYYcgjHE1Z1QtXACPDjcFJyBskHEdagmnq3vsP8=
|
||||
github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
|
||||
github.com/jmespath/go-jmespath v0.0.0-20160803190731-bd40a432e4c7/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
|
||||
|
|
@ -915,11 +915,12 @@ github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FI
|
|||
github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY=
|
||||
github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
|
||||
github.com/pavel-v-chernykh/keystore-go v2.1.0+incompatible/go.mod h1:xlUlxe/2ItGlQyMTstqeDv9r3U4obH7xYd26TbDQutY=
|
||||
github.com/pavel-v-chernykh/keystore-go/v4 v4.1.0/go.mod h1:2ejgys4qY+iNVW1IittZhyRYA6MNv8TgM6VHqojbB9g=
|
||||
github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k=
|
||||
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
|
||||
github.com/pelletier/go-toml v1.4.0/go.mod h1:PN7xzY2wHTK0K9p34ErDQMlFxa51Fk0OUruD3k1mMwo=
|
||||
github.com/pelletier/go-toml v1.8.1 h1:1Nf83orprkJyknT6h7zbuEGUEjcyVlCxSUGTENmNCRM=
|
||||
github.com/pelletier/go-toml v1.8.1/go.mod h1:T2/BmBdy8dvIRq1a/8aqjN41wvWlN4lrapLU/GW4pbc=
|
||||
github.com/pelletier/go-toml v1.9.0 h1:NOd0BRdOKpPf0SxkL3HxSQOG7rNh+4kl6PHcBPFs7Q0=
|
||||
github.com/pelletier/go-toml v1.9.0/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
|
||||
github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac=
|
||||
github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI=
|
||||
github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU=
|
||||
|
|
@ -1306,8 +1307,8 @@ golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v
|
|||
golang.org/x/net v0.0.0-20210224082022-3d97a244fca7/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||
golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc=
|
||||
golang.org/x/net v0.0.0-20210331212208-0fccb6fa2b5c h1:KHUzaHIpjWVlVVNh65G3hhuj3KB1HnjY6Cq5cTvRQT8=
|
||||
golang.org/x/net v0.0.0-20210331212208-0fccb6fa2b5c/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
||||
golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1 h1:4qWs8cYYH6PoEFy4dfhDFgoMGkwAcETd+MmPdCPMzUc=
|
||||
golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1/go.mod h1:9tjilg8BloeKEkVJvy7fQ90B1CfIiPueXVOjqfkSzI8=
|
||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||
|
|
@ -1438,8 +1439,9 @@ golang.org/x/text v0.3.1-0.20181227161524-e6919f6577db/go.mod h1:bEr9sfX3Q8Zfm5f
|
|||
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.5 h1:i6eZZ+zk0SOf0xgBpEpPD18qWcJda6q1sxt3S0kzyUQ=
|
||||
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
|
||||
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||
|
|
@ -1556,8 +1558,9 @@ google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ
|
|||
google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE=
|
||||
google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8=
|
||||
google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU=
|
||||
google.golang.org/api v0.43.0 h1:4sAyIHT6ZohtAQDoxws+ez7bROYmUlOVvsUscYCDTqA=
|
||||
google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94=
|
||||
google.golang.org/api v0.44.0 h1:URs6qR1lAxDsqWITsQXI4ZkGiYJ5dHtRNiCpfs2OeKA=
|
||||
google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8=
|
||||
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
||||
google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||
|
|
@ -1736,8 +1739,8 @@ k8s.io/client-go v0.21.0 h1:n0zzzJsAQmJngpC0IhgFcApZyoGXPrDIAD601HD09ag=
|
|||
k8s.io/client-go v0.21.0/go.mod h1:nNBytTF9qPFDEhoqgEPaarobC8QPae13bElIVHzIglA=
|
||||
k8s.io/cloud-provider v0.21.0 h1:NSTS+czpv6LQAaIpY/VUghsT4oj62hYmQPErkDKTzKU=
|
||||
k8s.io/cloud-provider v0.21.0/go.mod h1:z17TQgu3JgUFjcgby8sj5X86YdVK5Pbt+jm/eYMZU9M=
|
||||
k8s.io/cloud-provider-openstack v1.20.2 h1:gQpJQyU40nNjghgtF2WPTqdjcOw1O7OWYZJ9m1Hlq1c=
|
||||
k8s.io/cloud-provider-openstack v1.20.2/go.mod h1:+ITp4mYAod+/IiQCzYKz92+Ns9VrYkkWdBmYVWSGwnI=
|
||||
k8s.io/cloud-provider-openstack v1.20.3 h1:RkhoqQeiw1wgYorZLbuizMn4244HOGVzpNWAQyLJKPo=
|
||||
k8s.io/cloud-provider-openstack v1.20.3/go.mod h1:+ITp4mYAod+/IiQCzYKz92+Ns9VrYkkWdBmYVWSGwnI=
|
||||
k8s.io/cluster-bootstrap v0.21.0/go.mod h1:rs7i1JpBCa56YNmnYxFJuoUghIwpMzDidY8ZmqiRnrQ=
|
||||
k8s.io/code-generator v0.21.0/go.mod h1:hUlps5+9QaTrKx+jiM4rmq7YmH8wPOIko64uZCHDh6Q=
|
||||
k8s.io/component-base v0.21.0 h1:tLLGp4BBjQaCpS/KiuWh7m2xqvAdsxLm4ATxHSe5Zpg=
|
||||
|
|
|
|||
|
|
@ -18,4 +18,4 @@ package version
|
|||
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
||||
|
||||
// Number contains the semantic version of this SDK.
|
||||
const Number = "v53.0.0"
|
||||
const Number = "v53.1.0"
|
||||
|
|
|
|||
|
|
@ -3982,6 +3982,7 @@ var awsPartition = partition{
|
|||
"ap-east-1": endpoint{},
|
||||
"ap-northeast-1": endpoint{},
|
||||
"ap-northeast-2": endpoint{},
|
||||
"ap-northeast-3": endpoint{},
|
||||
"ap-south-1": endpoint{},
|
||||
"ap-southeast-1": endpoint{},
|
||||
"ap-southeast-2": endpoint{},
|
||||
|
|
@ -4137,6 +4138,7 @@ var awsPartition = partition{
|
|||
"ap-east-1": endpoint{},
|
||||
"ap-northeast-1": endpoint{},
|
||||
"ap-northeast-2": endpoint{},
|
||||
"ap-northeast-3": endpoint{},
|
||||
"ap-south-1": endpoint{},
|
||||
"ap-southeast-1": endpoint{},
|
||||
"ap-southeast-2": endpoint{},
|
||||
|
|
@ -4830,6 +4832,22 @@ var awsPartition = partition{
|
|||
"us-west-2": endpoint{},
|
||||
},
|
||||
},
|
||||
"personalize": service{
|
||||
|
||||
Endpoints: endpoints{
|
||||
"ap-northeast-1": endpoint{},
|
||||
"ap-northeast-2": endpoint{},
|
||||
"ap-south-1": endpoint{},
|
||||
"ap-southeast-1": endpoint{},
|
||||
"ap-southeast-2": endpoint{},
|
||||
"ca-central-1": endpoint{},
|
||||
"eu-central-1": endpoint{},
|
||||
"eu-west-1": endpoint{},
|
||||
"us-east-1": endpoint{},
|
||||
"us-east-2": endpoint{},
|
||||
"us-west-2": endpoint{},
|
||||
},
|
||||
},
|
||||
"pinpoint": service{
|
||||
Defaults: endpoint{
|
||||
CredentialScope: credentialScope{
|
||||
|
|
@ -7808,7 +7826,8 @@ var awscnPartition = partition{
|
|||
"lakeformation": service{
|
||||
|
||||
Endpoints: endpoints{
|
||||
"cn-north-1": endpoint{},
|
||||
"cn-north-1": endpoint{},
|
||||
"cn-northwest-1": endpoint{},
|
||||
},
|
||||
},
|
||||
"lambda": service{
|
||||
|
|
@ -7876,6 +7895,12 @@ var awscnPartition = partition{
|
|||
},
|
||||
},
|
||||
},
|
||||
"personalize": service{
|
||||
|
||||
Endpoints: endpoints{
|
||||
"cn-north-1": endpoint{},
|
||||
},
|
||||
},
|
||||
"polly": service{
|
||||
|
||||
Endpoints: endpoints{
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ package aws
|
|||
const SDKName = "aws-sdk-go"
|
||||
|
||||
// SDKVersion is the version of this SDK
|
||||
const SDKVersion = "1.38.12"
|
||||
const SDKVersion = "1.38.17"
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
12
vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface.go
generated
vendored
12
vendor/github.com/aws/aws-sdk-go/service/autoscaling/autoscalingiface/interface.go
generated
vendored
|
|
@ -128,6 +128,10 @@ type AutoScalingAPI interface {
|
|||
DeleteTagsWithContext(aws.Context, *autoscaling.DeleteTagsInput, ...request.Option) (*autoscaling.DeleteTagsOutput, error)
|
||||
DeleteTagsRequest(*autoscaling.DeleteTagsInput) (*request.Request, *autoscaling.DeleteTagsOutput)
|
||||
|
||||
DeleteWarmPool(*autoscaling.DeleteWarmPoolInput) (*autoscaling.DeleteWarmPoolOutput, error)
|
||||
DeleteWarmPoolWithContext(aws.Context, *autoscaling.DeleteWarmPoolInput, ...request.Option) (*autoscaling.DeleteWarmPoolOutput, error)
|
||||
DeleteWarmPoolRequest(*autoscaling.DeleteWarmPoolInput) (*request.Request, *autoscaling.DeleteWarmPoolOutput)
|
||||
|
||||
DescribeAccountLimits(*autoscaling.DescribeAccountLimitsInput) (*autoscaling.DescribeAccountLimitsOutput, error)
|
||||
DescribeAccountLimitsWithContext(aws.Context, *autoscaling.DescribeAccountLimitsInput, ...request.Option) (*autoscaling.DescribeAccountLimitsOutput, error)
|
||||
DescribeAccountLimitsRequest(*autoscaling.DescribeAccountLimitsInput) (*request.Request, *autoscaling.DescribeAccountLimitsOutput)
|
||||
|
|
@ -228,6 +232,10 @@ type AutoScalingAPI interface {
|
|||
DescribeTerminationPolicyTypesWithContext(aws.Context, *autoscaling.DescribeTerminationPolicyTypesInput, ...request.Option) (*autoscaling.DescribeTerminationPolicyTypesOutput, error)
|
||||
DescribeTerminationPolicyTypesRequest(*autoscaling.DescribeTerminationPolicyTypesInput) (*request.Request, *autoscaling.DescribeTerminationPolicyTypesOutput)
|
||||
|
||||
DescribeWarmPool(*autoscaling.DescribeWarmPoolInput) (*autoscaling.DescribeWarmPoolOutput, error)
|
||||
DescribeWarmPoolWithContext(aws.Context, *autoscaling.DescribeWarmPoolInput, ...request.Option) (*autoscaling.DescribeWarmPoolOutput, error)
|
||||
DescribeWarmPoolRequest(*autoscaling.DescribeWarmPoolInput) (*request.Request, *autoscaling.DescribeWarmPoolOutput)
|
||||
|
||||
DetachInstances(*autoscaling.DetachInstancesInput) (*autoscaling.DetachInstancesOutput, error)
|
||||
DetachInstancesWithContext(aws.Context, *autoscaling.DetachInstancesInput, ...request.Option) (*autoscaling.DetachInstancesOutput, error)
|
||||
DetachInstancesRequest(*autoscaling.DetachInstancesInput) (*request.Request, *autoscaling.DetachInstancesOutput)
|
||||
|
|
@ -276,6 +284,10 @@ type AutoScalingAPI interface {
|
|||
PutScheduledUpdateGroupActionWithContext(aws.Context, *autoscaling.PutScheduledUpdateGroupActionInput, ...request.Option) (*autoscaling.PutScheduledUpdateGroupActionOutput, error)
|
||||
PutScheduledUpdateGroupActionRequest(*autoscaling.PutScheduledUpdateGroupActionInput) (*request.Request, *autoscaling.PutScheduledUpdateGroupActionOutput)
|
||||
|
||||
PutWarmPool(*autoscaling.PutWarmPoolInput) (*autoscaling.PutWarmPoolOutput, error)
|
||||
PutWarmPoolWithContext(aws.Context, *autoscaling.PutWarmPoolInput, ...request.Option) (*autoscaling.PutWarmPoolOutput, error)
|
||||
PutWarmPoolRequest(*autoscaling.PutWarmPoolInput) (*request.Request, *autoscaling.PutWarmPoolOutput)
|
||||
|
||||
RecordLifecycleActionHeartbeat(*autoscaling.RecordLifecycleActionHeartbeatInput) (*autoscaling.RecordLifecycleActionHeartbeatOutput, error)
|
||||
RecordLifecycleActionHeartbeatWithContext(aws.Context, *autoscaling.RecordLifecycleActionHeartbeatInput, ...request.Option) (*autoscaling.RecordLifecycleActionHeartbeatOutput, error)
|
||||
RecordLifecycleActionHeartbeatRequest(*autoscaling.RecordLifecycleActionHeartbeatInput) (*request.Request, *autoscaling.RecordLifecycleActionHeartbeatOutput)
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -352,6 +352,10 @@ type EC2API interface {
|
|||
CreateReservedInstancesListingWithContext(aws.Context, *ec2.CreateReservedInstancesListingInput, ...request.Option) (*ec2.CreateReservedInstancesListingOutput, error)
|
||||
CreateReservedInstancesListingRequest(*ec2.CreateReservedInstancesListingInput) (*request.Request, *ec2.CreateReservedInstancesListingOutput)
|
||||
|
||||
CreateRestoreImageTask(*ec2.CreateRestoreImageTaskInput) (*ec2.CreateRestoreImageTaskOutput, error)
|
||||
CreateRestoreImageTaskWithContext(aws.Context, *ec2.CreateRestoreImageTaskInput, ...request.Option) (*ec2.CreateRestoreImageTaskOutput, error)
|
||||
CreateRestoreImageTaskRequest(*ec2.CreateRestoreImageTaskInput) (*request.Request, *ec2.CreateRestoreImageTaskOutput)
|
||||
|
||||
CreateRoute(*ec2.CreateRouteInput) (*ec2.CreateRouteOutput, error)
|
||||
CreateRouteWithContext(aws.Context, *ec2.CreateRouteInput, ...request.Option) (*ec2.CreateRouteOutput, error)
|
||||
CreateRouteRequest(*ec2.CreateRouteInput) (*request.Request, *ec2.CreateRouteOutput)
|
||||
|
|
@ -376,6 +380,10 @@ type EC2API interface {
|
|||
CreateSpotDatafeedSubscriptionWithContext(aws.Context, *ec2.CreateSpotDatafeedSubscriptionInput, ...request.Option) (*ec2.CreateSpotDatafeedSubscriptionOutput, error)
|
||||
CreateSpotDatafeedSubscriptionRequest(*ec2.CreateSpotDatafeedSubscriptionInput) (*request.Request, *ec2.CreateSpotDatafeedSubscriptionOutput)
|
||||
|
||||
CreateStoreImageTask(*ec2.CreateStoreImageTaskInput) (*ec2.CreateStoreImageTaskOutput, error)
|
||||
CreateStoreImageTaskWithContext(aws.Context, *ec2.CreateStoreImageTaskInput, ...request.Option) (*ec2.CreateStoreImageTaskOutput, error)
|
||||
CreateStoreImageTaskRequest(*ec2.CreateStoreImageTaskInput) (*request.Request, *ec2.CreateStoreImageTaskOutput)
|
||||
|
||||
CreateSubnet(*ec2.CreateSubnetInput) (*ec2.CreateSubnetOutput, error)
|
||||
CreateSubnetWithContext(aws.Context, *ec2.CreateSubnetInput, ...request.Option) (*ec2.CreateSubnetOutput, error)
|
||||
CreateSubnetRequest(*ec2.CreateSubnetInput) (*request.Request, *ec2.CreateSubnetOutput)
|
||||
|
|
@ -1258,6 +1266,13 @@ type EC2API interface {
|
|||
DescribeStaleSecurityGroupsPages(*ec2.DescribeStaleSecurityGroupsInput, func(*ec2.DescribeStaleSecurityGroupsOutput, bool) bool) error
|
||||
DescribeStaleSecurityGroupsPagesWithContext(aws.Context, *ec2.DescribeStaleSecurityGroupsInput, func(*ec2.DescribeStaleSecurityGroupsOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribeStoreImageTasks(*ec2.DescribeStoreImageTasksInput) (*ec2.DescribeStoreImageTasksOutput, error)
|
||||
DescribeStoreImageTasksWithContext(aws.Context, *ec2.DescribeStoreImageTasksInput, ...request.Option) (*ec2.DescribeStoreImageTasksOutput, error)
|
||||
DescribeStoreImageTasksRequest(*ec2.DescribeStoreImageTasksInput) (*request.Request, *ec2.DescribeStoreImageTasksOutput)
|
||||
|
||||
DescribeStoreImageTasksPages(*ec2.DescribeStoreImageTasksInput, func(*ec2.DescribeStoreImageTasksOutput, bool) bool) error
|
||||
DescribeStoreImageTasksPagesWithContext(aws.Context, *ec2.DescribeStoreImageTasksInput, func(*ec2.DescribeStoreImageTasksOutput, bool) bool, ...request.Option) error
|
||||
|
||||
DescribeSubnets(*ec2.DescribeSubnetsInput) (*ec2.DescribeSubnetsOutput, error)
|
||||
DescribeSubnetsWithContext(aws.Context, *ec2.DescribeSubnetsInput, ...request.Option) (*ec2.DescribeSubnetsOutput, error)
|
||||
DescribeSubnetsRequest(*ec2.DescribeSubnetsInput) (*request.Request, *ec2.DescribeSubnetsOutput)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,27 @@
|
|||
## 0.17.0 (Unreleased)
|
||||
## 0.18.0 (Unreleased)
|
||||
|
||||
## 0.17.0 (April 9, 2021)
|
||||
|
||||
IMPROVEMENTS
|
||||
|
||||
* `networking/v2/extensions/quotas.QuotaDetail.Reserved` can handle both `int` and `string` values [GH-2126](https://github.com/gophercloud/gophercloud/pull/2126)
|
||||
* Added `blockstorage/v3/volumetypes.ListExtraSpecs` [GH-2123](https://github.com/gophercloud/gophercloud/pull/2123)
|
||||
* Added `blockstorage/v3/volumetypes.GetExtraSpec` [GH-2123](https://github.com/gophercloud/gophercloud/pull/2123)
|
||||
* Added `blockstorage/v3/volumetypes.CreateExtraSpecs` [GH-2123](https://github.com/gophercloud/gophercloud/pull/2123)
|
||||
* Added `blockstorage/v3/volumetypes.UpdateExtraSpec` [GH-2123](https://github.com/gophercloud/gophercloud/pull/2123)
|
||||
* Added `blockstorage/v3/volumetypes.DeleteExtraSpec` [GH-2123](https://github.com/gophercloud/gophercloud/pull/2123)
|
||||
* Added `identity/v3/roles.ListAssignmentOpts.IncludeNames` [GH-2133](https://github.com/gophercloud/gophercloud/pull/2133)
|
||||
* Added `identity/v3/roles.AssignedRoles.Name` [GH-2133](https://github.com/gophercloud/gophercloud/pull/2133)
|
||||
* Added `identity/v3/roles.Domain.Name` [GH-2133](https://github.com/gophercloud/gophercloud/pull/2133)
|
||||
* Added `identity/v3/roles.Project.Name` [GH-2133](https://github.com/gophercloud/gophercloud/pull/2133)
|
||||
* Added `identity/v3/roles.User.Name` [GH-2133](https://github.com/gophercloud/gophercloud/pull/2133)
|
||||
* Added `identity/v3/roles.Group.Name` [GH-2133](https://github.com/gophercloud/gophercloud/pull/2133)
|
||||
* Added `blockstorage/extensions/availabilityzones.List` [GH-2135](https://github.com/gophercloud/gophercloud/pull/2135)
|
||||
* Added `blockstorage/v3/volumetypes.ListAccesses` [GH-2138](https://github.com/gophercloud/gophercloud/pull/2138)
|
||||
* Added `blockstorage/v3/volumetypes.AddAccess` [GH-2138](https://github.com/gophercloud/gophercloud/pull/2138)
|
||||
* Added `blockstorage/v3/volumetypes.RemoveAccess` [GH-2138](https://github.com/gophercloud/gophercloud/pull/2138)
|
||||
* Added `blockstorage/v3/qos.Create` [GH-2140](https://github.com/gophercloud/gophercloud/pull/2140)
|
||||
* Added `blockstorage/v3/qos.Delete` [GH-2140](https://github.com/gophercloud/gophercloud/pull/2140)
|
||||
|
||||
## 0.16.0 (February 23, 2021)
|
||||
|
||||
|
|
|
|||
22
vendor/github.com/jetstack/cert-manager/pkg/apis/certmanager/v1/types_certificate.go
generated
vendored
22
vendor/github.com/jetstack/cert-manager/pkg/apis/certmanager/v1/types_certificate.go
generated
vendored
|
|
@ -98,6 +98,7 @@ type CertificateSpec struct {
|
|||
|
||||
// The requested 'duration' (i.e. lifetime) of the Certificate.
|
||||
// This option may be ignored/overridden by some issuer types.
|
||||
// If unset this defaults to 90 days.
|
||||
// If overridden and `renewBefore` is greater than the actual certificate
|
||||
// duration, the certificate will be automatically renewed 2/3rds of the
|
||||
// way through the certificate's duration.
|
||||
|
|
@ -106,6 +107,7 @@ type CertificateSpec struct {
|
|||
|
||||
// The amount of time before the currently issued certificate's `notAfter`
|
||||
// time that cert-manager will begin to attempt to renew the certificate.
|
||||
// If unset this defaults to 30 days.
|
||||
// If this value is greater than the total duration of the certificate
|
||||
// (i.e. notAfter - notBefore), it will be automatically renewed 2/3rds of
|
||||
// the way through the certificate's duration.
|
||||
|
|
@ -165,6 +167,18 @@ type CertificateSpec struct {
|
|||
// in the CertificateRequest
|
||||
// +optional
|
||||
EncodeUsagesInRequest *bool `json:"encodeUsagesInRequest,omitempty"`
|
||||
|
||||
// revisionHistoryLimit is the maximum number of CertificateRequest revisions
|
||||
// that are maintained in the Certificate's history. Each revision represents
|
||||
// a single `CertificateRequest` created by this Certificate, either when it
|
||||
// was created, renewed, or Spec was changed. Revisions will be removed by
|
||||
// oldest first if the number of revisions exceeds this number. If set,
|
||||
// revisionHistoryLimit must be a value of `1` or greater. If unset (`nil`),
|
||||
// revisions will not be garbage collected. Default value is `nil`.
|
||||
// +kubebuilder:validation:Minimum=1
|
||||
// +kubebuilder:validation:ExclusiveMaximum=false
|
||||
// +optional
|
||||
RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"`
|
||||
}
|
||||
|
||||
// CertificatePrivateKey contains configuration options for private keys
|
||||
|
|
@ -383,6 +397,14 @@ type CertificateCondition struct {
|
|||
// transition, complementing reason.
|
||||
// +optional
|
||||
Message string `json:"message,omitempty"`
|
||||
|
||||
// If set, this represents the .metadata.generation that the condition was
|
||||
// set based upon.
|
||||
// For instance, if .metadata.generation is currently 12, but the
|
||||
// .status.condition[x].observedGeneration is 9, the condition is out of date
|
||||
// with respect to the current state of the Certificate.
|
||||
// +optional
|
||||
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateConditionType represents an Certificate condition value.
|
||||
|
|
|
|||
|
|
@ -102,6 +102,24 @@ type CertificateRequestSpec struct {
|
|||
// Defaults to `digital signature` and `key encipherment` if not specified.
|
||||
// +optional
|
||||
Usages []KeyUsage `json:"usages,omitempty"`
|
||||
|
||||
// Username contains the name of the user that created the CertificateRequest.
|
||||
// Populated by the cert-manager webhook on creation and immutable.
|
||||
// +optional
|
||||
Username string `json:"username,omitempty"`
|
||||
// UID contains the uid of the user that created the CertificateRequest.
|
||||
// Populated by the cert-manager webhook on creation and immutable.
|
||||
// +optional
|
||||
UID string `json:"uid,omitempty"`
|
||||
// Groups contains group membership of the user that created the CertificateRequest.
|
||||
// Populated by the cert-manager webhook on creation and immutable.
|
||||
// +listType=atomic
|
||||
// +optional
|
||||
Groups []string `json:"groups,omitempty"`
|
||||
// Extra contains extra attributes of the user that created the CertificateRequest.
|
||||
// Populated by the cert-manager webhook on creation and immutable.
|
||||
// +optional
|
||||
Extra map[string][]string `json:"extra,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateRequestStatus defines the observed state of CertificateRequest and
|
||||
|
|
@ -135,7 +153,8 @@ type CertificateRequestStatus struct {
|
|||
|
||||
// CertificateRequestCondition contains condition information for a CertificateRequest.
|
||||
type CertificateRequestCondition struct {
|
||||
// Type of the condition, known values are (`Ready`, `InvalidRequest`).
|
||||
// Type of the condition, known values are (`Ready`, `InvalidRequest`,
|
||||
// `Approved`, `Denied`).
|
||||
Type CertificateRequestConditionType `json:"type"`
|
||||
|
||||
// Status of the condition, one of (`True`, `False`, `Unknown`).
|
||||
|
|
@ -171,4 +190,16 @@ const (
|
|||
// parameters being invalid. Additional information about why the request
|
||||
// was rejected can be found in the `reason` and `message` fields.
|
||||
CertificateRequestConditionInvalidRequest CertificateRequestConditionType = "InvalidRequest"
|
||||
|
||||
// CertificateRequestConditionApproved indicates that a certificate request
|
||||
// is approved and ready for signing. Condition must never have a status of
|
||||
// `False`, and cannot be modified once set. Cannot be set alongside
|
||||
// `Denied`.
|
||||
CertificateRequestConditionApproved CertificateRequestConditionType = "Approved"
|
||||
|
||||
// CertificateRequestConditionDenied indicates that a certificate request is
|
||||
// denied, and must never be signed. Condition must never have a status of
|
||||
// `False`, and cannot be modified once set. Cannot be set alongside
|
||||
// `Approved`.
|
||||
CertificateRequestConditionDenied CertificateRequestConditionType = "Denied"
|
||||
)
|
||||
|
|
|
|||
10
vendor/github.com/jetstack/cert-manager/pkg/apis/certmanager/v1/types_issuer.go
generated
vendored
10
vendor/github.com/jetstack/cert-manager/pkg/apis/certmanager/v1/types_issuer.go
generated
vendored
|
|
@ -281,7 +281,7 @@ type CAIssuer struct {
|
|||
// The OCSP server list is an X.509 v3 extension that defines a list of
|
||||
// URLs of OCSP responders. The OCSP responders can be queried for the
|
||||
// revocation status of an issued certificate. If not set, the
|
||||
// certificate wil be issued with no OCSP servers set. For example, an
|
||||
// certificate will be issued with no OCSP servers set. For example, an
|
||||
// OCSP server URL could be "http://ocsp.int-x3.letsencrypt.org".
|
||||
// +optional
|
||||
OCSPServers []string `json:"ocspServers,omitempty"`
|
||||
|
|
@ -323,6 +323,14 @@ type IssuerCondition struct {
|
|||
// transition, complementing reason.
|
||||
// +optional
|
||||
Message string `json:"message,omitempty"`
|
||||
|
||||
// If set, this represents the .metadata.generation that the condition was
|
||||
// set based upon.
|
||||
// For instance, if .metadata.generation is currently 12, but the
|
||||
// .status.condition[x].observedGeneration is 9, the condition is out of date
|
||||
// with respect to the current state of the Issuer.
|
||||
// +optional
|
||||
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
|
||||
}
|
||||
|
||||
// IssuerConditionType represents an Issuer condition value.
|
||||
|
|
|
|||
25
vendor/github.com/jetstack/cert-manager/pkg/apis/certmanager/v1/zz_generated.deepcopy.go
generated
vendored
25
vendor/github.com/jetstack/cert-manager/pkg/apis/certmanager/v1/zz_generated.deepcopy.go
generated
vendored
|
|
@ -276,6 +276,26 @@ func (in *CertificateRequestSpec) DeepCopyInto(out *CertificateRequestSpec) {
|
|||
*out = make([]KeyUsage, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.Groups != nil {
|
||||
in, out := &in.Groups, &out.Groups
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.Extra != nil {
|
||||
in, out := &in.Extra, &out.Extra
|
||||
*out = make(map[string][]string, len(*in))
|
||||
for key, val := range *in {
|
||||
var outVal []string
|
||||
if val == nil {
|
||||
(*out)[key] = nil
|
||||
} else {
|
||||
in, out := &val, &outVal
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
(*out)[key] = outVal
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -385,6 +405,11 @@ func (in *CertificateSpec) DeepCopyInto(out *CertificateSpec) {
|
|||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
if in.RevisionHistoryLimit != nil {
|
||||
in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit
|
||||
*out = new(int32)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -189,6 +189,18 @@ type CertificateSpec struct {
|
|||
// in the CertificateRequest
|
||||
// +optional
|
||||
EncodeUsagesInRequest *bool `json:"encodeUsagesInRequest,omitempty"`
|
||||
|
||||
// revisionHistoryLimit is the maximum number of CertificateRequest revisions
|
||||
// that are maintained in the Certificate's history. Each revision represents
|
||||
// a single `CertificateRequest` created by this Certificate, either when it
|
||||
// was created, renewed, or Spec was changed. Revisions will be removed by
|
||||
// oldest first if the number of revisions exceeds this number. If set,
|
||||
// revisionHistoryLimit must be a value of `1` or greater. If unset (`nil`),
|
||||
// revisions will not be garbage collected. Default value is `nil`.
|
||||
// +kubebuilder:validation:Minimum=1
|
||||
// +kubebuilder:validation:ExclusiveMaximum=false
|
||||
// +optional
|
||||
RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"`
|
||||
}
|
||||
|
||||
// CertificatePrivateKey contains configuration options for private keys
|
||||
|
|
@ -371,6 +383,14 @@ type CertificateCondition struct {
|
|||
// transition, complementing reason.
|
||||
// +optional
|
||||
Message string `json:"message,omitempty"`
|
||||
|
||||
// If set, this represents the .metadata.generation that the condition was
|
||||
// set based upon.
|
||||
// For instance, if .metadata.generation is currently 12, but the
|
||||
// .status.condition[x].observedGeneration is 9, the condition is out of date
|
||||
// with respect to the current state of the Certificate.
|
||||
// +optional
|
||||
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateConditionType represents an Certificate condition value.
|
||||
|
|
|
|||
|
|
@ -99,6 +99,24 @@ type CertificateRequestSpec struct {
|
|||
// Defaults to `digital signature` and `key encipherment` if not specified.
|
||||
// +optional
|
||||
Usages []KeyUsage `json:"usages,omitempty"`
|
||||
|
||||
// Username contains the name of the user that created the CertificateRequest.
|
||||
// Populated by the cert-manager webhook on creation and immutable.
|
||||
// +optional
|
||||
Username string `json:"username,omitempty"`
|
||||
// UID contains the uid of the user that created the CertificateRequest.
|
||||
// Populated by the cert-manager webhook on creation and immutable.
|
||||
// +optional
|
||||
UID string `json:"uid,omitempty"`
|
||||
// Groups contains group membership of the user that created the CertificateRequest.
|
||||
// Populated by the cert-manager webhook on creation and immutable.
|
||||
// +listType=atomic
|
||||
// +optional
|
||||
Groups []string `json:"groups,omitempty"`
|
||||
// Extra contains extra attributes of the user that created the CertificateRequest.
|
||||
// Populated by the cert-manager webhook on creation and immutable.
|
||||
// +optional
|
||||
Extra map[string][]string `json:"extra,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateRequestStatus defines the observed state of CertificateRequest and
|
||||
|
|
@ -132,7 +150,8 @@ type CertificateRequestStatus struct {
|
|||
|
||||
// CertificateRequestCondition contains condition information for a CertificateRequest.
|
||||
type CertificateRequestCondition struct {
|
||||
// Type of the condition, known values are (`Ready`, `InvalidRequest`).
|
||||
// Type of the condition, known values are (`Ready`,
|
||||
// `InvalidRequest`, `Approved`, `Denied`).
|
||||
Type CertificateRequestConditionType `json:"type"`
|
||||
|
||||
// Status of the condition, one of (`True`, `False`, `Unknown`).
|
||||
|
|
@ -168,4 +187,16 @@ const (
|
|||
// parameters being invalid. Additional information about why the request
|
||||
// was rejected can be found in the `reason` and `message` fields.
|
||||
CertificateRequestConditionInvalidRequest CertificateRequestConditionType = "InvalidRequest"
|
||||
|
||||
// CertificateRequestConditionApproved indicates that a certificate request
|
||||
// is approved and ready for signing. Condition must never have a status of
|
||||
// `False`, and cannot be modified once set. Cannot be set alongside
|
||||
// `Denied`.
|
||||
CertificateRequestConditionApproved CertificateRequestConditionType = "Approved"
|
||||
|
||||
// CertificateRequestConditionDenied indicates that a certificate request is
|
||||
// denied, and must never be signed. Condition must never have a status of
|
||||
// `False`, and cannot be modified once set. Cannot be set alongside
|
||||
// `Approved`.
|
||||
CertificateRequestConditionDenied CertificateRequestConditionType = "Denied"
|
||||
)
|
||||
|
|
|
|||
10
vendor/github.com/jetstack/cert-manager/pkg/apis/certmanager/v1alpha2/types_issuer.go
generated
vendored
10
vendor/github.com/jetstack/cert-manager/pkg/apis/certmanager/v1alpha2/types_issuer.go
generated
vendored
|
|
@ -277,7 +277,7 @@ type CAIssuer struct {
|
|||
// The OCSP server list is an X.509 v3 extension that defines a list of
|
||||
// URLs of OCSP responders. The OCSP responders can be queried for the
|
||||
// revocation status of an issued certificate. If not set, the
|
||||
// certificate wil be issued with no OCSP servers set. For example, an
|
||||
// certificate will be issued with no OCSP servers set. For example, an
|
||||
// OCSP server URL could be "http://ocsp.int-x3.letsencrypt.org".
|
||||
// +optional
|
||||
OCSPServers []string `json:"ocspServers,omitempty"`
|
||||
|
|
@ -319,6 +319,14 @@ type IssuerCondition struct {
|
|||
// transition, complementing reason.
|
||||
// +optional
|
||||
Message string `json:"message,omitempty"`
|
||||
|
||||
// If set, this represents the .metadata.generation that the condition was
|
||||
// set based upon.
|
||||
// For instance, if .metadata.generation is currently 12, but the
|
||||
// .status.condition[x].observedGeneration is 9, the condition is out of date
|
||||
// with respect to the current state of the Issuer.
|
||||
// +optional
|
||||
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
|
||||
}
|
||||
|
||||
// IssuerConditionType represents an Issuer condition value.
|
||||
|
|
|
|||
|
|
@ -276,6 +276,26 @@ func (in *CertificateRequestSpec) DeepCopyInto(out *CertificateRequestSpec) {
|
|||
*out = make([]KeyUsage, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.Groups != nil {
|
||||
in, out := &in.Groups, &out.Groups
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.Extra != nil {
|
||||
in, out := &in.Extra, &out.Extra
|
||||
*out = make(map[string][]string, len(*in))
|
||||
for key, val := range *in {
|
||||
var outVal []string
|
||||
if val == nil {
|
||||
(*out)[key] = nil
|
||||
} else {
|
||||
in, out := &val, &outVal
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
(*out)[key] = outVal
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -390,6 +410,11 @@ func (in *CertificateSpec) DeepCopyInto(out *CertificateSpec) {
|
|||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
if in.RevisionHistoryLimit != nil {
|
||||
in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit
|
||||
*out = new(int32)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -187,6 +187,18 @@ type CertificateSpec struct {
|
|||
// in the CertificateRequest
|
||||
// +optional
|
||||
EncodeUsagesInRequest *bool `json:"encodeUsagesInRequest,omitempty"`
|
||||
|
||||
// revisionHistoryLimit is the maximum number of CertificateRequest revisions
|
||||
// that are maintained in the Certificate's history. Each revision represents
|
||||
// a single `CertificateRequest` created by this Certificate, either when it
|
||||
// was created, renewed, or Spec was changed. Revisions will be removed by
|
||||
// oldest first if the number of revisions exceeds this number. If set,
|
||||
// revisionHistoryLimit must be a value of `1` or greater. If unset (`nil`),
|
||||
// revisions will not be garbage collected. Default value is `nil`.
|
||||
// +kubebuilder:validation:Minimum=1
|
||||
// +kubebuilder:validation:ExclusiveMaximum=false
|
||||
// +optional
|
||||
RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"`
|
||||
}
|
||||
|
||||
// CertificatePrivateKey contains configuration options for private keys
|
||||
|
|
@ -378,6 +390,14 @@ type CertificateCondition struct {
|
|||
// transition, complementing reason.
|
||||
// +optional
|
||||
Message string `json:"message,omitempty"`
|
||||
|
||||
// If set, this represents the .metadata.generation that the condition was
|
||||
// set based upon.
|
||||
// For instance, if .metadata.generation is currently 12, but the
|
||||
// .status.condition[x].observedGeneration is 9, the condition is out of date
|
||||
// with respect to the current state of the Certificate.
|
||||
// +optional
|
||||
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateConditionType represents an Certificate condition value.
|
||||
|
|
|
|||
|
|
@ -99,6 +99,24 @@ type CertificateRequestSpec struct {
|
|||
// Defaults to `digital signature` and `key encipherment` if not specified.
|
||||
// +optional
|
||||
Usages []KeyUsage `json:"usages,omitempty"`
|
||||
|
||||
// Username contains the name of the user that created the CertificateRequest.
|
||||
// Populated by the cert-manager webhook on creation and immutable.
|
||||
// +optional
|
||||
Username string `json:"username,omitempty"`
|
||||
// UID contains the uid of the user that created the CertificateRequest.
|
||||
// Populated by the cert-manager webhook on creation and immutable.
|
||||
// +optional
|
||||
UID string `json:"uid,omitempty"`
|
||||
// Groups contains group membership of the user that created the CertificateRequest.
|
||||
// Populated by the cert-manager webhook on creation and immutable.
|
||||
// +listType=atomic
|
||||
// +optional
|
||||
Groups []string `json:"groups,omitempty"`
|
||||
// Extra contains extra attributes of the user that created the CertificateRequest.
|
||||
// Populated by the cert-manager webhook on creation and immutable.
|
||||
// +optional
|
||||
Extra map[string][]string `json:"extra,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateRequestStatus defines the observed state of CertificateRequest and
|
||||
|
|
@ -132,7 +150,8 @@ type CertificateRequestStatus struct {
|
|||
|
||||
// CertificateRequestCondition contains condition information for a CertificateRequest.
|
||||
type CertificateRequestCondition struct {
|
||||
// Type of the condition, known values are (`Ready`, `InvalidRequest`).
|
||||
// Type of the condition, known values are (`Ready`,
|
||||
// `InvalidRequest`, `Approved`, `Denied`).
|
||||
Type CertificateRequestConditionType `json:"type"`
|
||||
|
||||
// Status of the condition, one of (`True`, `False`, `Unknown`).
|
||||
|
|
@ -168,4 +187,14 @@ const (
|
|||
// parameters being invalid. Additional information about why the request
|
||||
// was rejected can be found in the `reason` and `message` fields.
|
||||
CertificateRequestConditionInvalidRequest CertificateRequestConditionType = "InvalidRequest"
|
||||
|
||||
// CertificateRequestConditionApproved indicates that a certificate request
|
||||
// is approved and ready for signing. Condition must never have a status of
|
||||
// `False`, and cannot be modified once set.
|
||||
CertificateRequestConditionApproved CertificateRequestConditionType = "Approved"
|
||||
|
||||
// CertificateRequestConditionDenied indicates that a certificate request is
|
||||
// denied, and must never be signed. Condition must never have a status of
|
||||
// `False`, and cannot be modified once set.
|
||||
CertificateRequestConditionDenied CertificateRequestConditionType = "Denied"
|
||||
)
|
||||
|
|
|
|||
10
vendor/github.com/jetstack/cert-manager/pkg/apis/certmanager/v1alpha3/types_issuer.go
generated
vendored
10
vendor/github.com/jetstack/cert-manager/pkg/apis/certmanager/v1alpha3/types_issuer.go
generated
vendored
|
|
@ -277,7 +277,7 @@ type CAIssuer struct {
|
|||
// The OCSP server list is an X.509 v3 extension that defines a list of
|
||||
// URLs of OCSP responders. The OCSP responders can be queried for the
|
||||
// revocation status of an issued certificate. If not set, the
|
||||
// certificate wil be issued with no OCSP servers set. For example, an
|
||||
// certificate will be issued with no OCSP servers set. For example, an
|
||||
// OCSP server URL could be "http://ocsp.int-x3.letsencrypt.org".
|
||||
// +optional
|
||||
OCSPServers []string `json:"ocspServers,omitempty"`
|
||||
|
|
@ -319,6 +319,14 @@ type IssuerCondition struct {
|
|||
// transition, complementing reason.
|
||||
// +optional
|
||||
Message string `json:"message,omitempty"`
|
||||
|
||||
// If set, this represents the .metadata.generation that the condition was
|
||||
// set based upon.
|
||||
// For instance, if .metadata.generation is currently 12, but the
|
||||
// .status.condition[x].observedGeneration is 9, the condition is out of date
|
||||
// with respect to the current state of the Issuer.
|
||||
// +optional
|
||||
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
|
||||
}
|
||||
|
||||
// IssuerConditionType represents an Issuer condition value.
|
||||
|
|
|
|||
|
|
@ -276,6 +276,26 @@ func (in *CertificateRequestSpec) DeepCopyInto(out *CertificateRequestSpec) {
|
|||
*out = make([]KeyUsage, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.Groups != nil {
|
||||
in, out := &in.Groups, &out.Groups
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.Extra != nil {
|
||||
in, out := &in.Extra, &out.Extra
|
||||
*out = make(map[string][]string, len(*in))
|
||||
for key, val := range *in {
|
||||
var outVal []string
|
||||
if val == nil {
|
||||
(*out)[key] = nil
|
||||
} else {
|
||||
in, out := &val, &outVal
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
(*out)[key] = outVal
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -385,6 +405,11 @@ func (in *CertificateSpec) DeepCopyInto(out *CertificateSpec) {
|
|||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
if in.RevisionHistoryLimit != nil {
|
||||
in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit
|
||||
*out = new(int32)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -164,6 +164,18 @@ type CertificateSpec struct {
|
|||
// in the CertificateRequest
|
||||
// +optional
|
||||
EncodeUsagesInRequest *bool `json:"encodeUsagesInRequest,omitempty"`
|
||||
|
||||
// revisionHistoryLimit is the maximum number of CertificateRequest revisions
|
||||
// that are maintained in the Certificate's history. Each revision represents
|
||||
// a single `CertificateRequest` created by this Certificate, either when it
|
||||
// was created, renewed, or Spec was changed. Revisions will be removed by
|
||||
// oldest first if the number of revisions exceeds this number. If set,
|
||||
// revisionHistoryLimit must be a value of `1` or greater. If unset (`nil`),
|
||||
// revisions will not be garbage collected. Default value is `nil`.
|
||||
// +kubebuilder:validation:Minimum=1
|
||||
// +kubebuilder:validation:ExclusiveMaximum=false
|
||||
// +optional
|
||||
RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"`
|
||||
}
|
||||
|
||||
// CertificatePrivateKey contains configuration options for private keys
|
||||
|
|
@ -376,6 +388,14 @@ type CertificateCondition struct {
|
|||
// transition, complementing reason.
|
||||
// +optional
|
||||
Message string `json:"message,omitempty"`
|
||||
|
||||
// If set, this represents the .metadata.generation that the condition was
|
||||
// set based upon.
|
||||
// For instance, if .metadata.generation is currently 12, but the
|
||||
// .status.condition[x].observedGeneration is 9, the condition is out of date
|
||||
// with respect to the current state of the Certificate.
|
||||
// +optional
|
||||
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateConditionType represents an Certificate condition value.
|
||||
|
|
|
|||
|
|
@ -100,6 +100,24 @@ type CertificateRequestSpec struct {
|
|||
// Defaults to `digital signature` and `key encipherment` if not specified.
|
||||
// +optional
|
||||
Usages []KeyUsage `json:"usages,omitempty"`
|
||||
|
||||
// Username contains the name of the user that created the CertificateRequest.
|
||||
// Populated by the cert-manager webhook on creation and immutable.
|
||||
// +optional
|
||||
Username string `json:"username,omitempty"`
|
||||
// UID contains the uid of the user that created the CertificateRequest.
|
||||
// Populated by the cert-manager webhook on creation and immutable.
|
||||
// +optional
|
||||
UID string `json:"uid,omitempty"`
|
||||
// Groups contains group membership of the user that created the CertificateRequest.
|
||||
// Populated by the cert-manager webhook on creation and immutable.
|
||||
// +listType=atomic
|
||||
// +optional
|
||||
Groups []string `json:"groups,omitempty"`
|
||||
// Extra contains extra attributes of the user that created the CertificateRequest.
|
||||
// Populated by the cert-manager webhook on creation and immutable.
|
||||
// +optional
|
||||
Extra map[string][]string `json:"extra,omitempty"`
|
||||
}
|
||||
|
||||
// CertificateRequestStatus defines the observed state of CertificateRequest and
|
||||
|
|
@ -133,7 +151,8 @@ type CertificateRequestStatus struct {
|
|||
|
||||
// CertificateRequestCondition contains condition information for a CertificateRequest.
|
||||
type CertificateRequestCondition struct {
|
||||
// Type of the condition, known values are (`Ready`, `InvalidRequest`).
|
||||
// Type of the condition, known values are (`Ready`,
|
||||
// `InvalidRequest`, `Approved`, `Denied`).
|
||||
Type CertificateRequestConditionType `json:"type"`
|
||||
|
||||
// Status of the condition, one of (`True`, `False`, `Unknown`).
|
||||
|
|
@ -169,4 +188,16 @@ const (
|
|||
// parameters being invalid. Additional information about why the request
|
||||
// was rejected can be found in the `reason` and `message` fields.
|
||||
CertificateRequestConditionInvalidRequest CertificateRequestConditionType = "InvalidRequest"
|
||||
|
||||
// CertificateRequestConditionApproved indicates that a certificate request
|
||||
// is approved and ready for signing. Condition must never have a status of
|
||||
// `False`, and cannot be modified once set. Cannot be set alongside
|
||||
// `Denied`.
|
||||
CertificateRequestConditionApproved CertificateRequestConditionType = "Approved"
|
||||
|
||||
// CertificateRequestConditionDenied indicates that a certificate request is
|
||||
// denied, and must never be signed. Condition must never have a status of
|
||||
// `False`, and cannot be modified once set. Cannot be set alongside
|
||||
// `Approved`.
|
||||
CertificateRequestConditionDenied CertificateRequestConditionType = "Denied"
|
||||
)
|
||||
|
|
|
|||
10
vendor/github.com/jetstack/cert-manager/pkg/apis/certmanager/v1beta1/types_issuer.go
generated
vendored
10
vendor/github.com/jetstack/cert-manager/pkg/apis/certmanager/v1beta1/types_issuer.go
generated
vendored
|
|
@ -279,7 +279,7 @@ type CAIssuer struct {
|
|||
// The OCSP server list is an X.509 v3 extension that defines a list of
|
||||
// URLs of OCSP responders. The OCSP responders can be queried for the
|
||||
// revocation status of an issued certificate. If not set, the
|
||||
// certificate wil be issued with no OCSP servers set. For example, an
|
||||
// certificate will be issued with no OCSP servers set. For example, an
|
||||
// OCSP server URL could be "http://ocsp.int-x3.letsencrypt.org".
|
||||
// +optional
|
||||
OCSPServers []string `json:"ocspServers,omitempty"`
|
||||
|
|
@ -321,6 +321,14 @@ type IssuerCondition struct {
|
|||
// transition, complementing reason.
|
||||
// +optional
|
||||
Message string `json:"message,omitempty"`
|
||||
|
||||
// If set, this represents the .metadata.generation that the condition was
|
||||
// set based upon.
|
||||
// For instance, if .metadata.generation is currently 12, but the
|
||||
// .status.condition[x].observedGeneration is 9, the condition is out of date
|
||||
// with respect to the current state of the Issuer.
|
||||
// +optional
|
||||
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
|
||||
}
|
||||
|
||||
// IssuerConditionType represents an Issuer condition value.
|
||||
|
|
|
|||
|
|
@ -276,6 +276,26 @@ func (in *CertificateRequestSpec) DeepCopyInto(out *CertificateRequestSpec) {
|
|||
*out = make([]KeyUsage, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.Groups != nil {
|
||||
in, out := &in.Groups, &out.Groups
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.Extra != nil {
|
||||
in, out := &in.Extra, &out.Extra
|
||||
*out = make(map[string][]string, len(*in))
|
||||
for key, val := range *in {
|
||||
var outVal []string
|
||||
if val == nil {
|
||||
(*out)[key] = nil
|
||||
} else {
|
||||
in, out := &val, &outVal
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
(*out)[key] = outVal
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -385,6 +405,11 @@ func (in *CertificateSpec) DeepCopyInto(out *CertificateSpec) {
|
|||
*out = new(bool)
|
||||
**out = **in
|
||||
}
|
||||
if in.RevisionHistoryLimit != nil {
|
||||
in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit
|
||||
*out = new(int32)
|
||||
**out = **in
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,8 +12,10 @@ go_library(
|
|||
"position.go",
|
||||
"token.go",
|
||||
"toml.go",
|
||||
"tomlpub.go",
|
||||
"tomltree_create.go",
|
||||
"tomltree_write.go",
|
||||
"tomltree_writepub.go",
|
||||
],
|
||||
importmap = "k8s.io/kops/vendor/github.com/pelletier/go-toml",
|
||||
importpath = "github.com/pelletier/go-toml",
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ improve the documentation. Fix a typo, clarify an interface, add an
|
|||
example, anything goes!
|
||||
|
||||
The documentation is present in the [README][readme] and thorough the
|
||||
source code. On release, it gets updated on [GoDoc][godoc]. To make a
|
||||
source code. On release, it gets updated on [pkg.go.dev][pkg.go.dev]. To make a
|
||||
change to the documentation, create a pull request with your proposed
|
||||
changes. For simple changes like that, the easiest way to go is probably
|
||||
the "Fork this project and edit the file" button on Github, displayed at
|
||||
|
|
@ -123,7 +123,7 @@ Checklist:
|
|||
|
||||
[issues-tracker]: https://github.com/pelletier/go-toml/issues
|
||||
[bug-report]: https://github.com/pelletier/go-toml/issues/new?template=bug_report.md
|
||||
[godoc]: https://godoc.org/github.com/pelletier/go-toml
|
||||
[pkg.go.dev]: https://pkg.go.dev/github.com/pelletier/go-toml
|
||||
[readme]: ./README.md
|
||||
[fork]: https://help.github.com/articles/fork-a-repo
|
||||
[pull-request]: https://help.github.com/en/articles/creating-a-pull-request
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2013 - 2017 Thomas Pelletier, Eric Anderton
|
||||
Copyright (c) 2013 - 2021 Thomas Pelletier, Eric Anderton
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
# go-toml
|
||||
|
||||
Go library for the [TOML](https://github.com/mojombo/toml) format.
|
||||
Go library for the [TOML](https://toml.io/) format.
|
||||
|
||||
This library supports TOML version
|
||||
[v1.0.0-rc.1](https://github.com/toml-lang/toml/blob/master/versions/en/toml-v1.0.0-rc.1.md)
|
||||
[v1.0.0-rc.3](https://toml.io/en/v1.0.0-rc.3)
|
||||
|
||||
[](http://godoc.org/github.com/pelletier/go-toml)
|
||||
[](https://pkg.go.dev/github.com/pelletier/go-toml)
|
||||
[](https://github.com/pelletier/go-toml/blob/master/LICENSE)
|
||||
[](https://dev.azure.com/pelletierthomas/go-toml-ci/_build/latest?definitionId=1&branchName=master)
|
||||
[](https://codecov.io/gh/pelletier/go-toml)
|
||||
|
|
@ -81,11 +81,11 @@ for ii, item := range results.Values() {
|
|||
## Documentation
|
||||
|
||||
The documentation and additional examples are available at
|
||||
[godoc.org](http://godoc.org/github.com/pelletier/go-toml).
|
||||
[pkg.go.dev](https://pkg.go.dev/github.com/pelletier/go-toml).
|
||||
|
||||
## Tools
|
||||
|
||||
Go-toml provides two handy command line tools:
|
||||
Go-toml provides three handy command line tools:
|
||||
|
||||
* `tomll`: Reads TOML files and lints them.
|
||||
|
||||
|
|
|
|||
|
|
@ -2,30 +2,6 @@ trigger:
|
|||
- master
|
||||
|
||||
stages:
|
||||
- stage: fuzzit
|
||||
displayName: "Run Fuzzit"
|
||||
dependsOn: []
|
||||
condition: and(succeeded(), eq(variables['Build.SourceBranchName'], 'master'))
|
||||
jobs:
|
||||
- job: submit
|
||||
displayName: "Submit"
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
steps:
|
||||
- task: GoTool@0
|
||||
displayName: "Install Go 1.15"
|
||||
inputs:
|
||||
version: "1.15"
|
||||
- script: echo "##vso[task.setvariable variable=PATH]${PATH}:/home/vsts/go/bin/"
|
||||
- script: mkdir -p ${HOME}/go/src/github.com/pelletier/go-toml
|
||||
- script: cp -R . ${HOME}/go/src/github.com/pelletier/go-toml
|
||||
- task: Bash@3
|
||||
inputs:
|
||||
filePath: './fuzzit.sh'
|
||||
env:
|
||||
TYPE: fuzzing
|
||||
FUZZIT_API_KEY: $(FUZZIT_API_KEY)
|
||||
|
||||
- stage: run_checks
|
||||
displayName: "Check"
|
||||
dependsOn: []
|
||||
|
|
@ -36,9 +12,9 @@ stages:
|
|||
vmImage: ubuntu-latest
|
||||
steps:
|
||||
- task: GoTool@0
|
||||
displayName: "Install Go 1.15"
|
||||
displayName: "Install Go 1.16"
|
||||
inputs:
|
||||
version: "1.15"
|
||||
version: "1.16"
|
||||
- task: Go@0
|
||||
displayName: "go fmt ./..."
|
||||
inputs:
|
||||
|
|
@ -51,9 +27,9 @@ stages:
|
|||
vmImage: ubuntu-latest
|
||||
steps:
|
||||
- task: GoTool@0
|
||||
displayName: "Install Go 1.15"
|
||||
displayName: "Install Go 1.16"
|
||||
inputs:
|
||||
version: "1.15"
|
||||
version: "1.16"
|
||||
- task: Go@0
|
||||
displayName: "Generate coverage"
|
||||
inputs:
|
||||
|
|
@ -71,37 +47,28 @@ stages:
|
|||
vmImage: ubuntu-latest
|
||||
steps:
|
||||
- task: GoTool@0
|
||||
displayName: "Install Go 1.15"
|
||||
displayName: "Install Go 1.16"
|
||||
inputs:
|
||||
version: "1.15"
|
||||
version: "1.16"
|
||||
- script: echo "##vso[task.setvariable variable=PATH]${PATH}:/home/vsts/go/bin/"
|
||||
- task: Bash@3
|
||||
inputs:
|
||||
filePath: './benchmark.sh'
|
||||
arguments: "master $(Build.Repository.Uri)"
|
||||
|
||||
- job: fuzzing
|
||||
displayName: "fuzzing"
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
steps:
|
||||
- task: GoTool@0
|
||||
displayName: "Install Go 1.15"
|
||||
inputs:
|
||||
version: "1.15"
|
||||
- script: echo "##vso[task.setvariable variable=PATH]${PATH}:/home/vsts/go/bin/"
|
||||
- script: mkdir -p ${HOME}/go/src/github.com/pelletier/go-toml
|
||||
- script: cp -R . ${HOME}/go/src/github.com/pelletier/go-toml
|
||||
- task: Bash@3
|
||||
inputs:
|
||||
filePath: './fuzzit.sh'
|
||||
env:
|
||||
TYPE: local-regression
|
||||
|
||||
- job: go_unit_tests
|
||||
displayName: "unit tests"
|
||||
strategy:
|
||||
matrix:
|
||||
linux 1.16:
|
||||
goVersion: '1.16'
|
||||
imageName: 'ubuntu-latest'
|
||||
mac 1.16:
|
||||
goVersion: '1.16'
|
||||
imageName: 'macOS-latest'
|
||||
windows 1.16:
|
||||
goVersion: '1.16'
|
||||
imageName: 'windows-latest'
|
||||
linux 1.15:
|
||||
goVersion: '1.15'
|
||||
imageName: 'ubuntu-latest'
|
||||
|
|
@ -111,15 +78,6 @@ stages:
|
|||
windows 1.15:
|
||||
goVersion: '1.15'
|
||||
imageName: 'windows-latest'
|
||||
linux 1.14:
|
||||
goVersion: '1.14'
|
||||
imageName: 'ubuntu-latest'
|
||||
mac 1.14:
|
||||
goVersion: '1.14'
|
||||
imageName: 'macOS-latest'
|
||||
windows 1.14:
|
||||
goVersion: '1.14'
|
||||
imageName: 'windows-latest'
|
||||
pool:
|
||||
vmImage: $(imageName)
|
||||
steps:
|
||||
|
|
@ -155,7 +113,7 @@ stages:
|
|||
- task: GoTool@0
|
||||
displayName: "Install Go"
|
||||
inputs:
|
||||
version: 1.15
|
||||
version: 1.16
|
||||
- task: Bash@3
|
||||
inputs:
|
||||
targetType: inline
|
||||
|
|
|
|||
|
|
@ -1,26 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -xe
|
||||
|
||||
# go-fuzz doesn't support modules yet, so ensure we do everything
|
||||
# in the old style GOPATH way
|
||||
export GO111MODULE="off"
|
||||
|
||||
# install go-fuzz
|
||||
go get -u github.com/dvyukov/go-fuzz/go-fuzz github.com/dvyukov/go-fuzz/go-fuzz-build
|
||||
|
||||
# target name can only contain lower-case letters (a-z), digits (0-9) and a dash (-)
|
||||
# to add another target, make sure to create it with `fuzzit create target`
|
||||
# before using `fuzzit create job`
|
||||
TARGET=toml-fuzzer
|
||||
|
||||
go-fuzz-build -libfuzzer -o ${TARGET}.a github.com/pelletier/go-toml
|
||||
clang -fsanitize=fuzzer ${TARGET}.a -o ${TARGET}
|
||||
|
||||
# install fuzzit for talking to fuzzit.dev service
|
||||
# or latest version:
|
||||
# https://github.com/fuzzitdev/fuzzit/releases/latest/download/fuzzit_Linux_x86_64
|
||||
wget -q -O fuzzit https://github.com/fuzzitdev/fuzzit/releases/download/v2.4.52/fuzzit_Linux_x86_64
|
||||
chmod a+x fuzzit
|
||||
|
||||
# TODO: change kkowalczyk to go-toml and create toml-fuzzer target there
|
||||
./fuzzit create job --type $TYPE go-toml/${TARGET} ${TARGET}
|
||||
|
|
@ -1,5 +1,3 @@
|
|||
module github.com/pelletier/go-toml
|
||||
|
||||
go 1.12
|
||||
|
||||
require github.com/davecgh/go-spew v1.1.1
|
||||
|
|
|
|||
|
|
@ -1,19 +0,0 @@
|
|||
github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
|
||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
|
||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.3 h1:fvjTMHxHEw/mxHbtzPi3JCcKXQRAnQTBRo6YCJSVHKI=
|
||||
gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I=
|
||||
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.5 h1:ymVxjfMaHvXD8RqPRmzHHsB3VvucivSkIAvJFDI5O3c=
|
||||
gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.7 h1:VUgggvou5XRW9mHwD/yXxIYSMtY0zoKQf/v226p2nyo=
|
||||
gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
|
||||
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
|
||||
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||
|
|
@ -9,13 +9,10 @@ import (
|
|||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
var dateRegexp *regexp.Regexp
|
||||
|
||||
// Define state functions
|
||||
type tomlLexStateFn func() tomlLexStateFn
|
||||
|
||||
|
|
@ -216,18 +213,12 @@ func (l *tomlLexer) lexRvalue() tomlLexStateFn {
|
|||
break
|
||||
}
|
||||
|
||||
possibleDate := l.peekString(35)
|
||||
dateSubmatches := dateRegexp.FindStringSubmatch(possibleDate)
|
||||
if dateSubmatches != nil && dateSubmatches[0] != "" {
|
||||
l.fastForward(len(dateSubmatches[0]))
|
||||
if dateSubmatches[2] == "" { // no timezone information => local date
|
||||
return l.lexLocalDate
|
||||
}
|
||||
return l.lexDate
|
||||
if next == '+' || next == '-' {
|
||||
return l.lexNumber
|
||||
}
|
||||
|
||||
if next == '+' || next == '-' || isDigit(next) {
|
||||
return l.lexNumber
|
||||
if isDigit(next) {
|
||||
return l.lexDateTimeOrNumber
|
||||
}
|
||||
|
||||
return l.errorf("no value can start with %c", next)
|
||||
|
|
@ -237,6 +228,32 @@ func (l *tomlLexer) lexRvalue() tomlLexStateFn {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (l *tomlLexer) lexDateTimeOrNumber() tomlLexStateFn {
|
||||
// Could be either a date/time, or a digit.
|
||||
// The options for date/times are:
|
||||
// YYYY-... => date or date-time
|
||||
// HH:... => time
|
||||
// Anything else should be a number.
|
||||
|
||||
lookAhead := l.peekString(5)
|
||||
if len(lookAhead) < 3 {
|
||||
return l.lexNumber()
|
||||
}
|
||||
|
||||
for idx, r := range lookAhead {
|
||||
if !isDigit(r) {
|
||||
if idx == 2 && r == ':' {
|
||||
return l.lexDateTimeOrTime()
|
||||
}
|
||||
if idx == 4 && r == '-' {
|
||||
return l.lexDateTimeOrTime()
|
||||
}
|
||||
return l.lexNumber()
|
||||
}
|
||||
}
|
||||
return l.lexNumber()
|
||||
}
|
||||
|
||||
func (l *tomlLexer) lexLeftCurlyBrace() tomlLexStateFn {
|
||||
l.next()
|
||||
l.emit(tokenLeftCurlyBrace)
|
||||
|
|
@ -254,14 +271,245 @@ func (l *tomlLexer) lexRightCurlyBrace() tomlLexStateFn {
|
|||
return l.lexRvalue
|
||||
}
|
||||
|
||||
func (l *tomlLexer) lexDate() tomlLexStateFn {
|
||||
l.emit(tokenDate)
|
||||
func (l *tomlLexer) lexDateTimeOrTime() tomlLexStateFn {
|
||||
// Example matches:
|
||||
// 1979-05-27T07:32:00Z
|
||||
// 1979-05-27T00:32:00-07:00
|
||||
// 1979-05-27T00:32:00.999999-07:00
|
||||
// 1979-05-27 07:32:00Z
|
||||
// 1979-05-27 00:32:00-07:00
|
||||
// 1979-05-27 00:32:00.999999-07:00
|
||||
// 1979-05-27T07:32:00
|
||||
// 1979-05-27T00:32:00.999999
|
||||
// 1979-05-27 07:32:00
|
||||
// 1979-05-27 00:32:00.999999
|
||||
// 1979-05-27
|
||||
// 07:32:00
|
||||
// 00:32:00.999999
|
||||
|
||||
// we already know those two are digits
|
||||
l.next()
|
||||
l.next()
|
||||
|
||||
// Got 2 digits. At that point it could be either a time or a date(-time).
|
||||
|
||||
r := l.next()
|
||||
if r == ':' {
|
||||
return l.lexTime()
|
||||
}
|
||||
|
||||
return l.lexDateTime()
|
||||
}
|
||||
|
||||
func (l *tomlLexer) lexDateTime() tomlLexStateFn {
|
||||
// This state accepts an offset date-time, a local date-time, or a local date.
|
||||
//
|
||||
// v--- cursor
|
||||
// 1979-05-27T07:32:00Z
|
||||
// 1979-05-27T00:32:00-07:00
|
||||
// 1979-05-27T00:32:00.999999-07:00
|
||||
// 1979-05-27 07:32:00Z
|
||||
// 1979-05-27 00:32:00-07:00
|
||||
// 1979-05-27 00:32:00.999999-07:00
|
||||
// 1979-05-27T07:32:00
|
||||
// 1979-05-27T00:32:00.999999
|
||||
// 1979-05-27 07:32:00
|
||||
// 1979-05-27 00:32:00.999999
|
||||
// 1979-05-27
|
||||
|
||||
// date
|
||||
|
||||
// already checked by lexRvalue
|
||||
l.next() // digit
|
||||
l.next() // -
|
||||
|
||||
for i := 0; i < 2; i++ {
|
||||
r := l.next()
|
||||
if !isDigit(r) {
|
||||
return l.errorf("invalid month digit in date: %c", r)
|
||||
}
|
||||
}
|
||||
|
||||
r := l.next()
|
||||
if r != '-' {
|
||||
return l.errorf("expected - to separate month of a date, not %c", r)
|
||||
}
|
||||
|
||||
for i := 0; i < 2; i++ {
|
||||
r := l.next()
|
||||
if !isDigit(r) {
|
||||
return l.errorf("invalid day digit in date: %c", r)
|
||||
}
|
||||
}
|
||||
|
||||
l.emit(tokenLocalDate)
|
||||
|
||||
r = l.peek()
|
||||
|
||||
if r == eof {
|
||||
|
||||
return l.lexRvalue
|
||||
}
|
||||
|
||||
if r != ' ' && r != 'T' {
|
||||
return l.errorf("incorrect date/time separation character: %c", r)
|
||||
}
|
||||
|
||||
if r == ' ' {
|
||||
lookAhead := l.peekString(3)[1:]
|
||||
if len(lookAhead) < 2 {
|
||||
return l.lexRvalue
|
||||
}
|
||||
for _, r := range lookAhead {
|
||||
if !isDigit(r) {
|
||||
return l.lexRvalue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
l.skip() // skip the T or ' '
|
||||
|
||||
// time
|
||||
|
||||
for i := 0; i < 2; i++ {
|
||||
r := l.next()
|
||||
if !isDigit(r) {
|
||||
return l.errorf("invalid hour digit in time: %c", r)
|
||||
}
|
||||
}
|
||||
|
||||
r = l.next()
|
||||
if r != ':' {
|
||||
return l.errorf("time hour/minute separator should be :, not %c", r)
|
||||
}
|
||||
|
||||
for i := 0; i < 2; i++ {
|
||||
r := l.next()
|
||||
if !isDigit(r) {
|
||||
return l.errorf("invalid minute digit in time: %c", r)
|
||||
}
|
||||
}
|
||||
|
||||
r = l.next()
|
||||
if r != ':' {
|
||||
return l.errorf("time minute/second separator should be :, not %c", r)
|
||||
}
|
||||
|
||||
for i := 0; i < 2; i++ {
|
||||
r := l.next()
|
||||
if !isDigit(r) {
|
||||
return l.errorf("invalid second digit in time: %c", r)
|
||||
}
|
||||
}
|
||||
|
||||
r = l.peek()
|
||||
if r == '.' {
|
||||
l.next()
|
||||
r := l.next()
|
||||
if !isDigit(r) {
|
||||
return l.errorf("expected at least one digit in time's fraction, not %c", r)
|
||||
}
|
||||
|
||||
for {
|
||||
r := l.peek()
|
||||
if !isDigit(r) {
|
||||
break
|
||||
}
|
||||
l.next()
|
||||
}
|
||||
}
|
||||
|
||||
l.emit(tokenLocalTime)
|
||||
|
||||
return l.lexTimeOffset
|
||||
|
||||
}
|
||||
|
||||
func (l *tomlLexer) lexTimeOffset() tomlLexStateFn {
|
||||
// potential offset
|
||||
|
||||
// Z
|
||||
// -07:00
|
||||
// +07:00
|
||||
// nothing
|
||||
|
||||
r := l.peek()
|
||||
|
||||
if r == 'Z' {
|
||||
l.next()
|
||||
l.emit(tokenTimeOffset)
|
||||
} else if r == '+' || r == '-' {
|
||||
l.next()
|
||||
|
||||
for i := 0; i < 2; i++ {
|
||||
r := l.next()
|
||||
if !isDigit(r) {
|
||||
return l.errorf("invalid hour digit in time offset: %c", r)
|
||||
}
|
||||
}
|
||||
|
||||
r = l.next()
|
||||
if r != ':' {
|
||||
return l.errorf("time offset hour/minute separator should be :, not %c", r)
|
||||
}
|
||||
|
||||
for i := 0; i < 2; i++ {
|
||||
r := l.next()
|
||||
if !isDigit(r) {
|
||||
return l.errorf("invalid minute digit in time offset: %c", r)
|
||||
}
|
||||
}
|
||||
|
||||
l.emit(tokenTimeOffset)
|
||||
}
|
||||
|
||||
return l.lexRvalue
|
||||
}
|
||||
|
||||
func (l *tomlLexer) lexLocalDate() tomlLexStateFn {
|
||||
l.emit(tokenLocalDate)
|
||||
func (l *tomlLexer) lexTime() tomlLexStateFn {
|
||||
// v--- cursor
|
||||
// 07:32:00
|
||||
// 00:32:00.999999
|
||||
|
||||
for i := 0; i < 2; i++ {
|
||||
r := l.next()
|
||||
if !isDigit(r) {
|
||||
return l.errorf("invalid minute digit in time: %c", r)
|
||||
}
|
||||
}
|
||||
|
||||
r := l.next()
|
||||
if r != ':' {
|
||||
return l.errorf("time minute/second separator should be :, not %c", r)
|
||||
}
|
||||
|
||||
for i := 0; i < 2; i++ {
|
||||
r := l.next()
|
||||
if !isDigit(r) {
|
||||
return l.errorf("invalid second digit in time: %c", r)
|
||||
}
|
||||
}
|
||||
|
||||
r = l.peek()
|
||||
if r == '.' {
|
||||
l.next()
|
||||
r := l.next()
|
||||
if !isDigit(r) {
|
||||
return l.errorf("expected at least one digit in time's fraction, not %c", r)
|
||||
}
|
||||
|
||||
for {
|
||||
r := l.peek()
|
||||
if !isDigit(r) {
|
||||
break
|
||||
}
|
||||
l.next()
|
||||
}
|
||||
}
|
||||
|
||||
l.emit(tokenLocalTime)
|
||||
return l.lexRvalue
|
||||
|
||||
}
|
||||
|
||||
func (l *tomlLexer) lexTrue() tomlLexStateFn {
|
||||
|
|
@ -767,30 +1015,6 @@ func (l *tomlLexer) run() {
|
|||
}
|
||||
}
|
||||
|
||||
func init() {
|
||||
// Regexp for all date/time formats supported by TOML.
|
||||
// Group 1: nano precision
|
||||
// Group 2: timezone
|
||||
//
|
||||
// /!\ also matches the empty string
|
||||
//
|
||||
// Example matches:
|
||||
// 1979-05-27T07:32:00Z
|
||||
// 1979-05-27T00:32:00-07:00
|
||||
// 1979-05-27T00:32:00.999999-07:00
|
||||
// 1979-05-27 07:32:00Z
|
||||
// 1979-05-27 00:32:00-07:00
|
||||
// 1979-05-27 00:32:00.999999-07:00
|
||||
// 1979-05-27T07:32:00
|
||||
// 1979-05-27T00:32:00.999999
|
||||
// 1979-05-27 07:32:00
|
||||
// 1979-05-27 00:32:00.999999
|
||||
// 1979-05-27
|
||||
// 07:32:00
|
||||
// 00:32:00.999999
|
||||
dateRegexp = regexp.MustCompile(`^(?:\d{1,4}-\d{2}-\d{2})?(?:[T ]?\d{2}:\d{2}:\d{2}(\.\d{1,9})?(Z|[+-]\d{2}:\d{2})?)?`)
|
||||
}
|
||||
|
||||
// Entry point
|
||||
func lexToml(inputBytes []byte) []token {
|
||||
runes := bytes.Runes(inputBytes)
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ const (
|
|||
tagFieldComment = "comment"
|
||||
tagCommented = "commented"
|
||||
tagMultiline = "multiline"
|
||||
tagLiteral = "literal"
|
||||
tagDefault = "default"
|
||||
)
|
||||
|
||||
|
|
@ -27,6 +28,7 @@ type tomlOpts struct {
|
|||
comment string
|
||||
commented bool
|
||||
multiline bool
|
||||
literal bool
|
||||
include bool
|
||||
omitempty bool
|
||||
defaultValue string
|
||||
|
|
@ -46,6 +48,7 @@ type annotation struct {
|
|||
comment string
|
||||
commented string
|
||||
multiline string
|
||||
literal string
|
||||
defaultValue string
|
||||
}
|
||||
|
||||
|
|
@ -54,15 +57,16 @@ var annotationDefault = annotation{
|
|||
comment: tagFieldComment,
|
||||
commented: tagCommented,
|
||||
multiline: tagMultiline,
|
||||
literal: tagLiteral,
|
||||
defaultValue: tagDefault,
|
||||
}
|
||||
|
||||
type marshalOrder int
|
||||
type MarshalOrder int
|
||||
|
||||
// Orders the Encoder can write the fields to the output stream.
|
||||
const (
|
||||
// Sort fields alphabetically.
|
||||
OrderAlphabetical marshalOrder = iota + 1
|
||||
OrderAlphabetical MarshalOrder = iota + 1
|
||||
// Preserve the order the fields are encountered. For example, the order of fields in
|
||||
// a struct.
|
||||
OrderPreserve
|
||||
|
|
@ -256,7 +260,7 @@ type Encoder struct {
|
|||
annotation
|
||||
line int
|
||||
col int
|
||||
order marshalOrder
|
||||
order MarshalOrder
|
||||
promoteAnon bool
|
||||
indentation string
|
||||
}
|
||||
|
|
@ -317,7 +321,7 @@ func (e *Encoder) ArraysWithOneElementPerLine(v bool) *Encoder {
|
|||
}
|
||||
|
||||
// Order allows to change in which order fields will be written to the output stream.
|
||||
func (e *Encoder) Order(ord marshalOrder) *Encoder {
|
||||
func (e *Encoder) Order(ord MarshalOrder) *Encoder {
|
||||
e.order = ord
|
||||
return e
|
||||
}
|
||||
|
|
@ -442,6 +446,7 @@ func (e *Encoder) valueToTree(mtype reflect.Type, mval reflect.Value) (*Tree, er
|
|||
Comment: opts.comment,
|
||||
Commented: opts.commented,
|
||||
Multiline: opts.multiline,
|
||||
Literal: opts.literal,
|
||||
}, val)
|
||||
}
|
||||
}
|
||||
|
|
@ -830,7 +835,21 @@ func (d *Decoder) valueFromTree(mtype reflect.Type, tval *Tree, mval1 *reflect.V
|
|||
case reflect.Int32:
|
||||
val, err = strconv.ParseInt(opts.defaultValue, 10, 32)
|
||||
case reflect.Int64:
|
||||
val, err = strconv.ParseInt(opts.defaultValue, 10, 64)
|
||||
// Check if the provided number has a non-numeric extension.
|
||||
var hasExtension bool
|
||||
if len(opts.defaultValue) > 0 {
|
||||
lastChar := opts.defaultValue[len(opts.defaultValue)-1]
|
||||
if lastChar < '0' || lastChar > '9' {
|
||||
hasExtension = true
|
||||
}
|
||||
}
|
||||
// If the value is a time.Duration with extension, parse as duration.
|
||||
// If the value is an int64 or a time.Duration without extension, parse as number.
|
||||
if hasExtension && mvalf.Type().String() == "time.Duration" {
|
||||
val, err = time.ParseDuration(opts.defaultValue)
|
||||
} else {
|
||||
val, err = strconv.ParseInt(opts.defaultValue, 10, 64)
|
||||
}
|
||||
case reflect.Float32:
|
||||
val, err = strconv.ParseFloat(opts.defaultValue, 32)
|
||||
case reflect.Float64:
|
||||
|
|
@ -1004,8 +1023,18 @@ func (d *Decoder) valueFromToml(mtype reflect.Type, tval interface{}, mval1 *ref
|
|||
return reflect.ValueOf(nil), fmt.Errorf("Can't convert %v(%T) to a slice", tval, tval)
|
||||
default:
|
||||
d.visitor.visit()
|
||||
mvalPtr := reflect.New(mtype)
|
||||
|
||||
// Check if pointer to value implements the Unmarshaler interface.
|
||||
if isCustomUnmarshaler(mvalPtr.Type()) {
|
||||
if err := callCustomUnmarshaler(mvalPtr, tval); err != nil {
|
||||
return reflect.ValueOf(nil), fmt.Errorf("unmarshal toml: %v", err)
|
||||
}
|
||||
return mvalPtr.Elem(), nil
|
||||
}
|
||||
|
||||
// Check if pointer to value implements the encoding.TextUnmarshaler.
|
||||
if mvalPtr := reflect.New(mtype); isTextUnmarshaler(mvalPtr.Type()) && !isTimeType(mtype) {
|
||||
if isTextUnmarshaler(mvalPtr.Type()) && !isTimeType(mtype) {
|
||||
if err := d.unmarshalText(tval, mvalPtr); err != nil {
|
||||
return reflect.ValueOf(nil), fmt.Errorf("unmarshal text: %v", err)
|
||||
}
|
||||
|
|
@ -1144,6 +1173,7 @@ func tomlOptions(vf reflect.StructField, an annotation) tomlOpts {
|
|||
}
|
||||
commented, _ := strconv.ParseBool(vf.Tag.Get(an.commented))
|
||||
multiline, _ := strconv.ParseBool(vf.Tag.Get(an.multiline))
|
||||
literal, _ := strconv.ParseBool(vf.Tag.Get(an.literal))
|
||||
defaultValue := vf.Tag.Get(tagDefault)
|
||||
result := tomlOpts{
|
||||
name: vf.Name,
|
||||
|
|
@ -1151,6 +1181,7 @@ func tomlOptions(vf reflect.StructField, an annotation) tomlOpts {
|
|||
comment: comment,
|
||||
commented: commented,
|
||||
multiline: multiline,
|
||||
literal: literal,
|
||||
include: true,
|
||||
omitempty: false,
|
||||
defaultValue: defaultValue,
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import (
|
|||
"fmt"
|
||||
"math"
|
||||
"reflect"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
|
@ -231,19 +230,38 @@ func (p *tomlParser) parseAssign() tomlParserStateFn {
|
|||
return p.parseStart
|
||||
}
|
||||
|
||||
var numberUnderscoreInvalidRegexp *regexp.Regexp
|
||||
var hexNumberUnderscoreInvalidRegexp *regexp.Regexp
|
||||
var errInvalidUnderscore = errors.New("invalid use of _ in number")
|
||||
|
||||
func numberContainsInvalidUnderscore(value string) error {
|
||||
if numberUnderscoreInvalidRegexp.MatchString(value) {
|
||||
return errors.New("invalid use of _ in number")
|
||||
// For large numbers, you may use underscores between digits to enhance
|
||||
// readability. Each underscore must be surrounded by at least one digit on
|
||||
// each side.
|
||||
|
||||
hasBefore := false
|
||||
for idx, r := range value {
|
||||
if r == '_' {
|
||||
if !hasBefore || idx+1 >= len(value) {
|
||||
// can't end with an underscore
|
||||
return errInvalidUnderscore
|
||||
}
|
||||
}
|
||||
hasBefore = isDigit(r)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var errInvalidUnderscoreHex = errors.New("invalid use of _ in hex number")
|
||||
|
||||
func hexNumberContainsInvalidUnderscore(value string) error {
|
||||
if hexNumberUnderscoreInvalidRegexp.MatchString(value) {
|
||||
return errors.New("invalid use of _ in hex number")
|
||||
hasBefore := false
|
||||
for idx, r := range value {
|
||||
if r == '_' {
|
||||
if !hasBefore || idx+1 >= len(value) {
|
||||
// can't end with an underscore
|
||||
return errInvalidUnderscoreHex
|
||||
}
|
||||
}
|
||||
hasBefore = isHexDigit(r)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
@ -322,42 +340,44 @@ func (p *tomlParser) parseRvalue() interface{} {
|
|||
p.raiseError(tok, "%s", err)
|
||||
}
|
||||
return val
|
||||
case tokenDate:
|
||||
layout := time.RFC3339Nano
|
||||
if !strings.Contains(tok.val, "T") {
|
||||
layout = strings.Replace(layout, "T", " ", 1)
|
||||
}
|
||||
val, err := time.ParseInLocation(layout, tok.val, time.UTC)
|
||||
case tokenLocalTime:
|
||||
val, err := ParseLocalTime(tok.val)
|
||||
if err != nil {
|
||||
p.raiseError(tok, "%s", err)
|
||||
}
|
||||
return val
|
||||
case tokenLocalDate:
|
||||
v := strings.Replace(tok.val, " ", "T", -1)
|
||||
isDateTime := false
|
||||
isTime := false
|
||||
for _, c := range v {
|
||||
if c == 'T' || c == 't' {
|
||||
isDateTime = true
|
||||
break
|
||||
}
|
||||
if c == ':' {
|
||||
isTime = true
|
||||
break
|
||||
// a local date may be followed by:
|
||||
// * nothing: this is a local date
|
||||
// * a local time: this is a local date-time
|
||||
|
||||
next := p.peek()
|
||||
if next == nil || next.typ != tokenLocalTime {
|
||||
val, err := ParseLocalDate(tok.val)
|
||||
if err != nil {
|
||||
p.raiseError(tok, "%s", err)
|
||||
}
|
||||
return val
|
||||
}
|
||||
|
||||
var val interface{}
|
||||
var err error
|
||||
localDate := tok
|
||||
localTime := p.getToken()
|
||||
|
||||
if isDateTime {
|
||||
val, err = ParseLocalDateTime(v)
|
||||
} else if isTime {
|
||||
val, err = ParseLocalTime(v)
|
||||
} else {
|
||||
val, err = ParseLocalDate(v)
|
||||
next = p.peek()
|
||||
if next == nil || next.typ != tokenTimeOffset {
|
||||
v := localDate.val + "T" + localTime.val
|
||||
val, err := ParseLocalDateTime(v)
|
||||
if err != nil {
|
||||
p.raiseError(tok, "%s", err)
|
||||
}
|
||||
return val
|
||||
}
|
||||
|
||||
offset := p.getToken()
|
||||
|
||||
layout := time.RFC3339Nano
|
||||
v := localDate.val + "T" + localTime.val + offset.val
|
||||
val, err := time.ParseInLocation(layout, v, time.UTC)
|
||||
if err != nil {
|
||||
p.raiseError(tok, "%s", err)
|
||||
}
|
||||
|
|
@ -370,10 +390,10 @@ func (p *tomlParser) parseRvalue() interface{} {
|
|||
p.raiseError(tok, "cannot have multiple equals for the same key")
|
||||
case tokenError:
|
||||
p.raiseError(tok, "%s", tok)
|
||||
default:
|
||||
panic(fmt.Errorf("unhandled token: %v", tok))
|
||||
}
|
||||
|
||||
p.raiseError(tok, "never reached")
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
@ -486,8 +506,3 @@ func parseToml(flow []token) *Tree {
|
|||
parser.run()
|
||||
return result
|
||||
}
|
||||
|
||||
func init() {
|
||||
numberUnderscoreInvalidRegexp = regexp.MustCompile(`([^\d]_|_[^\d])|_$|^_`)
|
||||
hexNumberUnderscoreInvalidRegexp = regexp.MustCompile(`(^0x_)|([^\da-f]_|_[^\da-f])|_$|^_`)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,8 +30,9 @@ const (
|
|||
tokenRightParen
|
||||
tokenDoubleLeftBracket
|
||||
tokenDoubleRightBracket
|
||||
tokenDate
|
||||
tokenLocalDate
|
||||
tokenLocalTime
|
||||
tokenTimeOffset
|
||||
tokenKeyGroup
|
||||
tokenKeyGroupArray
|
||||
tokenComma
|
||||
|
|
@ -66,7 +67,8 @@ var tokenTypeNames = []string{
|
|||
"]]",
|
||||
"[[",
|
||||
"LocalDate",
|
||||
"LocalDate",
|
||||
"LocalTime",
|
||||
"TimeOffset",
|
||||
"KeyGroup",
|
||||
"KeyGroupArray",
|
||||
",",
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ type tomlValue struct {
|
|||
comment string
|
||||
commented bool
|
||||
multiline bool
|
||||
literal bool
|
||||
position Position
|
||||
}
|
||||
|
||||
|
|
@ -314,6 +315,7 @@ type SetOptions struct {
|
|||
Comment string
|
||||
Commented bool
|
||||
Multiline bool
|
||||
Literal bool
|
||||
}
|
||||
|
||||
// SetWithOptions is the same as Set, but allows you to provide formatting
|
||||
|
|
@ -362,12 +364,14 @@ func (t *Tree) SetPathWithOptions(keys []string, opts SetOptions, value interfac
|
|||
v.comment = opts.Comment
|
||||
v.commented = opts.Commented
|
||||
v.multiline = opts.Multiline
|
||||
v.literal = opts.Literal
|
||||
toInsert = v
|
||||
default:
|
||||
toInsert = &tomlValue{value: value,
|
||||
comment: opts.Comment,
|
||||
commented: opts.Commented,
|
||||
multiline: opts.Multiline,
|
||||
literal: opts.Literal,
|
||||
position: Position{Line: subtree.position.Line + len(subtree.values) + 1, Col: subtree.position.Col}}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,71 @@
|
|||
package toml
|
||||
|
||||
// PubTOMLValue wrapping tomlValue in order to access all properties from outside.
|
||||
type PubTOMLValue = tomlValue
|
||||
|
||||
func (ptv *PubTOMLValue) Value() interface{} {
|
||||
return ptv.value
|
||||
}
|
||||
func (ptv *PubTOMLValue) Comment() string {
|
||||
return ptv.comment
|
||||
}
|
||||
func (ptv *PubTOMLValue) Commented() bool {
|
||||
return ptv.commented
|
||||
}
|
||||
func (ptv *PubTOMLValue) Multiline() bool {
|
||||
return ptv.multiline
|
||||
}
|
||||
func (ptv *PubTOMLValue) Position() Position {
|
||||
return ptv.position
|
||||
}
|
||||
|
||||
func (ptv *PubTOMLValue) SetValue(v interface{}) {
|
||||
ptv.value = v
|
||||
}
|
||||
func (ptv *PubTOMLValue) SetComment(s string) {
|
||||
ptv.comment = s
|
||||
}
|
||||
func (ptv *PubTOMLValue) SetCommented(c bool) {
|
||||
ptv.commented = c
|
||||
}
|
||||
func (ptv *PubTOMLValue) SetMultiline(m bool) {
|
||||
ptv.multiline = m
|
||||
}
|
||||
func (ptv *PubTOMLValue) SetPosition(p Position) {
|
||||
ptv.position = p
|
||||
}
|
||||
|
||||
// PubTree wrapping Tree in order to access all properties from outside.
|
||||
type PubTree = Tree
|
||||
|
||||
func (pt *PubTree) Values() map[string]interface{} {
|
||||
return pt.values
|
||||
}
|
||||
|
||||
func (pt *PubTree) Comment() string {
|
||||
return pt.comment
|
||||
}
|
||||
|
||||
func (pt *PubTree) Commented() bool {
|
||||
return pt.commented
|
||||
}
|
||||
|
||||
func (pt *PubTree) Inline() bool {
|
||||
return pt.inline
|
||||
}
|
||||
|
||||
func (pt *PubTree) SetValues(v map[string]interface{}) {
|
||||
pt.values = v
|
||||
}
|
||||
|
||||
func (pt *PubTree) SetComment(c string) {
|
||||
pt.comment = c
|
||||
}
|
||||
|
||||
func (pt *PubTree) SetCommented(c bool) {
|
||||
pt.commented = c
|
||||
}
|
||||
|
||||
func (pt *PubTree) SetInline(i bool) {
|
||||
pt.inline = i
|
||||
}
|
||||
|
|
@ -103,7 +103,7 @@ func encodeTomlString(value string) string {
|
|||
return b.String()
|
||||
}
|
||||
|
||||
func tomlTreeStringRepresentation(t *Tree, ord marshalOrder) (string, error) {
|
||||
func tomlTreeStringRepresentation(t *Tree, ord MarshalOrder) (string, error) {
|
||||
var orderedVals []sortNode
|
||||
switch ord {
|
||||
case OrderPreserve:
|
||||
|
|
@ -126,7 +126,7 @@ func tomlTreeStringRepresentation(t *Tree, ord marshalOrder) (string, error) {
|
|||
return "{ " + strings.Join(values, ", ") + " }", nil
|
||||
}
|
||||
|
||||
func tomlValueStringRepresentation(v interface{}, commented string, indent string, ord marshalOrder, arraysOneElementPerLine bool) (string, error) {
|
||||
func tomlValueStringRepresentation(v interface{}, commented string, indent string, ord MarshalOrder, arraysOneElementPerLine bool) (string, error) {
|
||||
// this interface check is added to dereference the change made in the writeTo function.
|
||||
// That change was made to allow this function to see formatting options.
|
||||
tv, ok := v.(*tomlValue)
|
||||
|
|
@ -158,7 +158,15 @@ func tomlValueStringRepresentation(v interface{}, commented string, indent strin
|
|||
return strings.ToLower(strconv.FormatFloat(value, 'f', -1, bits)), nil
|
||||
case string:
|
||||
if tv.multiline {
|
||||
return "\"\"\"\n" + encodeMultilineTomlString(value, commented) + "\"\"\"", nil
|
||||
if tv.literal {
|
||||
b := strings.Builder{}
|
||||
b.WriteString("'''\n")
|
||||
b.Write([]byte(value))
|
||||
b.WriteString("\n'''")
|
||||
return b.String(), nil
|
||||
} else {
|
||||
return "\"\"\"\n" + encodeMultilineTomlString(value, commented) + "\"\"\"", nil
|
||||
}
|
||||
}
|
||||
return "\"" + encodeTomlString(value) + "\"", nil
|
||||
case []byte:
|
||||
|
|
@ -310,7 +318,7 @@ func (t *Tree) writeTo(w io.Writer, indent, keyspace string, bytesCount int64, a
|
|||
return t.writeToOrdered(w, indent, keyspace, bytesCount, arraysOneElementPerLine, OrderAlphabetical, " ", false)
|
||||
}
|
||||
|
||||
func (t *Tree) writeToOrdered(w io.Writer, indent, keyspace string, bytesCount int64, arraysOneElementPerLine bool, ord marshalOrder, indentString string, parentCommented bool) (int64, error) {
|
||||
func (t *Tree) writeToOrdered(w io.Writer, indent, keyspace string, bytesCount int64, arraysOneElementPerLine bool, ord MarshalOrder, indentString string, parentCommented bool) (int64, error) {
|
||||
var orderedVals []sortNode
|
||||
|
||||
switch ord {
|
||||
|
|
@ -510,8 +518,26 @@ func (t *Tree) ToMap() map[string]interface{} {
|
|||
case *Tree:
|
||||
result[k] = node.ToMap()
|
||||
case *tomlValue:
|
||||
result[k] = node.value
|
||||
result[k] = tomlValueToGo(node.value)
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
func tomlValueToGo(v interface{}) interface{} {
|
||||
if tree, ok := v.(*Tree); ok {
|
||||
return tree.ToMap()
|
||||
}
|
||||
|
||||
rv := reflect.ValueOf(v)
|
||||
|
||||
if rv.Kind() != reflect.Slice {
|
||||
return v
|
||||
}
|
||||
values := make([]interface{}, rv.Len())
|
||||
for i := 0; i < rv.Len(); i++ {
|
||||
item := rv.Index(i).Interface()
|
||||
values[i] = tomlValueToGo(item)
|
||||
}
|
||||
return values
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
package toml
|
||||
|
||||
// ValueStringRepresentation transforms an interface{} value into its toml string representation.
|
||||
func ValueStringRepresentation(v interface{}, commented string, indent string, ord MarshalOrder, arraysOneElementPerLine bool) (string, error) {
|
||||
return tomlValueStringRepresentation(v, commented, indent, ord, arraysOneElementPerLine)
|
||||
}
|
||||
|
|
@ -17,18 +17,45 @@ type Conn struct {
|
|||
c syscall.RawConn
|
||||
}
|
||||
|
||||
// tcpConn is an interface implemented by net.TCPConn.
|
||||
// It can be used for interface assertions to check if a net.Conn is a TCP connection.
|
||||
type tcpConn interface {
|
||||
SyscallConn() (syscall.RawConn, error)
|
||||
SetLinger(int) error
|
||||
}
|
||||
|
||||
var _ tcpConn = (*net.TCPConn)(nil)
|
||||
|
||||
// udpConn is an interface implemented by net.UDPConn.
|
||||
// It can be used for interface assertions to check if a net.Conn is a UDP connection.
|
||||
type udpConn interface {
|
||||
SyscallConn() (syscall.RawConn, error)
|
||||
ReadMsgUDP(b, oob []byte) (n, oobn, flags int, addr *net.UDPAddr, err error)
|
||||
}
|
||||
|
||||
var _ udpConn = (*net.UDPConn)(nil)
|
||||
|
||||
// ipConn is an interface implemented by net.IPConn.
|
||||
// It can be used for interface assertions to check if a net.Conn is an IP connection.
|
||||
type ipConn interface {
|
||||
SyscallConn() (syscall.RawConn, error)
|
||||
ReadMsgIP(b, oob []byte) (n, oobn, flags int, addr *net.IPAddr, err error)
|
||||
}
|
||||
|
||||
var _ ipConn = (*net.IPConn)(nil)
|
||||
|
||||
// NewConn returns a new raw connection.
|
||||
func NewConn(c net.Conn) (*Conn, error) {
|
||||
var err error
|
||||
var cc Conn
|
||||
switch c := c.(type) {
|
||||
case *net.TCPConn:
|
||||
case tcpConn:
|
||||
cc.network = "tcp"
|
||||
cc.c, err = c.SyscallConn()
|
||||
case *net.UDPConn:
|
||||
case udpConn:
|
||||
cc.network = "udp"
|
||||
cc.c, err = c.SyscallConn()
|
||||
case *net.IPConn:
|
||||
case ipConn:
|
||||
cc.network = "ip"
|
||||
cc.c, err = c.SyscallConn()
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build go1.10
|
||||
// +build go1.10
|
||||
|
||||
package bidirule
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
//go:build !go1.10
|
||||
// +build !go1.10
|
||||
|
||||
package bidirule
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||
|
||||
//go:build go1.10 && !go1.13
|
||||
// +build go1.10,!go1.13
|
||||
|
||||
package bidi
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||
|
||||
//go:build go1.13 && !go1.14
|
||||
// +build go1.13,!go1.14
|
||||
|
||||
package bidi
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||
|
||||
//go:build go1.14 && !go1.16
|
||||
// +build go1.14,!go1.16
|
||||
|
||||
package bidi
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||
|
||||
//go:build go1.16
|
||||
// +build go1.16
|
||||
|
||||
package bidi
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||
|
||||
//go:build !go1.10
|
||||
// +build !go1.10
|
||||
|
||||
package bidi
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||
|
||||
//go:build go1.10 && !go1.13
|
||||
// +build go1.10,!go1.13
|
||||
|
||||
package norm
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||
|
||||
//go:build go1.13 && !go1.14
|
||||
// +build go1.13,!go1.14
|
||||
|
||||
package norm
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||
|
||||
//go:build go1.14 && !go1.16
|
||||
// +build go1.14,!go1.16
|
||||
|
||||
package norm
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||
|
||||
//go:build go1.16
|
||||
// +build go1.16
|
||||
|
||||
package norm
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||
|
||||
//go:build !go1.10
|
||||
// +build !go1.10
|
||||
|
||||
package norm
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||
|
||||
//go:build go1.10 && !go1.13
|
||||
// +build go1.10,!go1.13
|
||||
|
||||
package width
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||
|
||||
//go:build go1.13 && !go1.14
|
||||
// +build go1.13,!go1.14
|
||||
|
||||
package width
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||
|
||||
//go:build go1.14 && !go1.16
|
||||
// +build go1.14,!go1.16
|
||||
|
||||
package width
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||
|
||||
//go:build go1.16
|
||||
// +build go1.16
|
||||
|
||||
package width
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT.
|
||||
|
||||
//go:build !go1.10
|
||||
// +build !go1.10
|
||||
|
||||
package width
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
"description": "Creates and runs virtual machines on Google Cloud Platform.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/compute/docs/reference/latest/",
|
||||
"etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/q86KO_TM075jWLyNAiNZlSqSxJ8\"",
|
||||
"etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/pyrls0FjB-CHfiQixrG9Uhuqqcg\"",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/compute_engine-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/compute_engine-32.png"
|
||||
|
|
@ -8020,7 +8020,7 @@
|
|||
]
|
||||
},
|
||||
"recreateInstances": {
|
||||
"description": "Flags the specified instances in the managed instance group to be immediately recreated. The instances are deleted and recreated using the current instance template for the managed instance group. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of the recreating action with the listmanagedinstances method.\n\nIf the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.\n\nYou can specify a maximum of 1000 instances with this method per request.",
|
||||
"description": "Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances.\n\nIf the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.\n\nYou can specify a maximum of 1000 instances with this method per request.",
|
||||
"httpMethod": "POST",
|
||||
"id": "compute.instanceGroupManagers.recreateInstances",
|
||||
"parameterOrder": [
|
||||
|
|
@ -9678,7 +9678,7 @@
|
|||
]
|
||||
},
|
||||
"delete": {
|
||||
"description": "Deletes the specified Instance resource. For more information, see Stopping or Deleting an Instance.",
|
||||
"description": "Deletes the specified Instance resource. For more information, see Deleting an instance.",
|
||||
"httpMethod": "DELETE",
|
||||
"id": "compute.instances.delete",
|
||||
"parameterOrder": [
|
||||
|
|
@ -22141,7 +22141,7 @@
|
|||
]
|
||||
},
|
||||
"recreateInstances": {
|
||||
"description": "Flags the specified instances in the managed instance group to be immediately recreated. The instances are deleted and recreated using the current instance template for the managed instance group. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of the recreating action with the listmanagedinstances method.\n\nIf the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.\n\nYou can specify a maximum of 1000 instances with this method per request.",
|
||||
"description": "Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances.\n\nIf the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.\n\nYou can specify a maximum of 1000 instances with this method per request.",
|
||||
"httpMethod": "POST",
|
||||
"id": "compute.regionInstanceGroupManagers.recreateInstances",
|
||||
"parameterOrder": [
|
||||
|
|
@ -28746,6 +28746,53 @@
|
|||
"https://www.googleapis.com/auth/compute.readonly"
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"description": "Patches the specified ServiceAttachment resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.",
|
||||
"httpMethod": "PATCH",
|
||||
"id": "compute.serviceAttachments.patch",
|
||||
"parameterOrder": [
|
||||
"project",
|
||||
"region",
|
||||
"serviceAttachment"
|
||||
],
|
||||
"parameters": {
|
||||
"project": {
|
||||
"description": "Project ID for this request.",
|
||||
"location": "path",
|
||||
"pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"description": "The region scoping this request and should conform to RFC1035.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"requestId": {
|
||||
"description": "An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.\n\nFor example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"serviceAttachment": {
|
||||
"description": "The resource id of the ServiceAttachment to patch. It should conform to RFC1035 resource name or be a string form on an unsigned long number.",
|
||||
"location": "path",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}",
|
||||
"request": {
|
||||
"$ref": "ServiceAttachment"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Operation"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/compute"
|
||||
]
|
||||
},
|
||||
"setIamPolicy": {
|
||||
"description": "Sets the access control policy on the specified resource. Replaces any existing policy.",
|
||||
"httpMethod": "POST",
|
||||
|
|
@ -35557,7 +35604,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20210310",
|
||||
"revision": "20210322",
|
||||
"rootUrl": "https://compute.googleapis.com/",
|
||||
"schemas": {
|
||||
"AcceleratorConfig": {
|
||||
|
|
@ -38336,7 +38383,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"sessionAffinity": {
|
||||
"description": "Type of session affinity to use. The default is NONE.\n\nWhen the loadBalancingScheme is EXTERNAL: * For Network Load Balancing, the possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. * For all other load balancers that use loadBalancingScheme=EXTERNAL, the possible values are NONE, CLIENT_IP, or GENERATED_COOKIE. * You can use GENERATED_COOKIE if the protocol is HTTP, HTTP2, or HTTPS.\n\nWhen the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.\n\nWhen the loadBalancingScheme is INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED, possible values are NONE, CLIENT_IP, GENERATED_COOKIE, HEADER_FIELD, or HTTP_COOKIE.\n\nNot supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.",
|
||||
"description": "Type of session affinity to use. The default is NONE.\n\nWhen the loadBalancingScheme is EXTERNAL: * For Network Load Balancing, the possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. * For all other load balancers that use loadBalancingScheme=EXTERNAL, the possible values are NONE, CLIENT_IP, or GENERATED_COOKIE. * You can use GENERATED_COOKIE if the protocol is HTTP, HTTP2, or HTTPS.\n\nWhen the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.\n\nWhen the loadBalancingScheme is INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED, possible values are NONE, CLIENT_IP, GENERATED_COOKIE, HEADER_FIELD, or HTTP_COOKIE.\n\nNot supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.",
|
||||
"enum": [
|
||||
"CLIENT_IP",
|
||||
"CLIENT_IP_NO_DESTINATION",
|
||||
|
|
@ -39272,22 +39319,23 @@
|
|||
},
|
||||
"instance": {
|
||||
"$ref": "Instance",
|
||||
"description": "The instance defining the VM instances to be created."
|
||||
"description": "DEPRECATED: Please use instance_properties instead."
|
||||
},
|
||||
"instanceProperties": {
|
||||
"$ref": "InstanceProperties",
|
||||
"description": "The instance properties defining the VM instances to be created. Required if sourceInstanceTemplate is not provided."
|
||||
},
|
||||
"locationPolicy": {
|
||||
"$ref": "LocationPolicy"
|
||||
"$ref": "LocationPolicy",
|
||||
"description": "Policy for chosing target zone."
|
||||
},
|
||||
"minCount": {
|
||||
"description": "The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created.",
|
||||
"description": "The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"namePattern": {
|
||||
"description": "The string pattern used for the names of the VMs. Either name_pattern or predefined_names must be set. The pattern should contain one consecutive sequence of placeholder hash characters (#) with each character corresponding to one digit of the generated instance name. Example: name_pattern of inst-#### will generate instance names like inst-0001, inst-0002, ... . If there already exist instance(s) whose names match the name pattern in the same project and zone, then the generated instance numbers will start after the biggest existing number. For example, if there exists an instance with name inst-0050, then instance names generated using the pattern inst-#### will be inst-0051, inst-0052, etc. The name pattern placeholder #...# can contain up to 18 characters.",
|
||||
"description": "The string pattern used for the names of the VMs. Either name_pattern or per_instance_properties must be set. The pattern should contain one continuous sequence of placeholder hash characters (#) with each character corresponding to one digit of the generated instance name. Example: name_pattern of inst-#### will generate instance names such as inst-0001, inst-0002, ... . If there already exist instance(s) whose names match the name pattern in the same project and zone, then the generated instance numbers will start after the biggest existing number. For example, if there exists an instance with name inst-0050, then instance names generated using the pattern inst-#### will be inst-0051, inst-0052, etc. The name pattern placeholder #...# can contain up to 18 characters.",
|
||||
"type": "string"
|
||||
},
|
||||
"perInstanceProperties": {
|
||||
|
|
@ -39298,7 +39346,7 @@
|
|||
"type": "object"
|
||||
},
|
||||
"predefinedNames": {
|
||||
"description": "List of predefined names. The number of names provided must be equal to count.",
|
||||
"description": "DEPRECATED: Please use per_instance_properties instead.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
|
|
@ -42699,6 +42747,23 @@
|
|||
"format": "uint64",
|
||||
"type": "string"
|
||||
},
|
||||
"pscConnectionStatus": {
|
||||
"enum": [
|
||||
"ACCEPTED",
|
||||
"CLOSED",
|
||||
"PENDING",
|
||||
"REJECTED",
|
||||
"STATUS_UNSPECIFIED"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"region": {
|
||||
"description": "[Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.",
|
||||
"type": "string"
|
||||
|
|
@ -49646,7 +49711,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"encryption": {
|
||||
"description": "Indicates the user-supplied encryption option of this interconnect attachment: \n- NONE is the default value, which means that the attachment carries unencrypted traffic. VMs can send traffic to, or receive traffic from, this type of attachment. \n- IPSEC indicates that the attachment carries only traffic encrypted by an IPsec device such as an HA VPN gateway. VMs cannot directly send traffic to, or receive traffic from, such an attachment. To use IPsec-encrypted Cloud Interconnect, create the attachment using this option.",
|
||||
"description": "Indicates the user-supplied encryption option of this interconnect attachment: \n- NONE is the default value, which means that the attachment carries unencrypted traffic. VMs can send traffic to, or receive traffic from, this type of attachment. \n- IPSEC indicates that the attachment carries only traffic encrypted by an IPsec device such as an HA VPN gateway. VMs cannot directly send traffic to, or receive traffic from, such an attachment. To use IPsec-encrypted Cloud Interconnect, create the attachment using this option. \nNot currently available in all Interconnect locations.",
|
||||
"enum": [
|
||||
"IPSEC",
|
||||
"NONE"
|
||||
|
|
@ -49671,7 +49736,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"ipsecInternalAddresses": {
|
||||
"description": "URL of addresses that have been reserved for the interconnect attachment, Used only for interconnect attachment that has the encryption option as IPSEC. The addresses must be RFC 1918 IP address ranges. When creating HA VPN gateway over the interconnect attachment, if the attachment is configured to use an RFC 1918 IP address, then the VPN gateway?s IP address will be allocated from the IP address range specified here. For example, if the HA VPN gateway?s interface 0 is paired to this interconnect attachment, then an RFC 1918 IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this interconnect attachment. If this field is not specified for interconnect attachment that has encryption option as IPSEC, later on when creating HA VPN gateway on this interconnect attachment, the HA VPN gateway's IP address will be allocated from regional external IP address pool.",
|
||||
"description": "URL of addresses that have been reserved for the interconnect attachment, Used only for interconnect attachment that has the encryption option as IPSEC. The addresses must be RFC 1918 IP address ranges. When creating HA VPN gateway over the interconnect attachment, if the attachment is configured to use an RFC 1918 IP address, then the VPN gateway?s IP address will be allocated from the IP address range specified here. For example, if the HA VPN gateway?s interface 0 is paired to this interconnect attachment, then an RFC 1918 IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this interconnect attachment. If this field is not specified for interconnect attachment that has encryption option as IPSEC, later on when creating HA VPN gateway on this interconnect attachment, the HA VPN gateway's IP address will be allocated from regional external IP address pool.\nNot currently available in all Interconnect locations.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
|
|
@ -51429,7 +51494,7 @@
|
|||
"additionalProperties": {
|
||||
"$ref": "LocationPolicyLocation"
|
||||
},
|
||||
"description": "Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, like: zones/us-central1-a.",
|
||||
"description": "Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a.",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
|
|
@ -51439,6 +51504,7 @@
|
|||
"id": "LocationPolicyLocation",
|
||||
"properties": {
|
||||
"preference": {
|
||||
"description": "Preference for a given locaction: ALLOW or DENY.",
|
||||
"enum": [
|
||||
"ALLOW",
|
||||
"DENY",
|
||||
|
|
@ -59505,7 +59571,7 @@
|
|||
"type": "array"
|
||||
},
|
||||
"skipInapplicableInstances": {
|
||||
"description": "Skip instances which cannot be deleted (instances not belonging to this managed group, already being deleted or being abandoned). If `false`, fail whole flow, if such instance is passed.",
|
||||
"description": "Skip instances which cannot be deleted (instances not belonging to this managed group, already being deleted or being abandoned). If `false`, fail whole flow, if such instance is passed. DEPRECATED: Use skip_instances_on_validation_error instead.",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
|
|
@ -61820,7 +61886,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"encryptedInterconnectRouter": {
|
||||
"description": "Field to indicate if a router is dedicated to use with encrypted Interconnect Attachment (IPsec-encrypted Cloud Interconnect feature).",
|
||||
"description": "Field to indicate if a router is dedicated to use with encrypted Interconnect Attachment (IPsec-encrypted Cloud Interconnect feature).\nNot currently available in all Interconnect locations.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"id": {
|
||||
|
|
@ -63648,7 +63714,7 @@
|
|||
"id": "SecurityPolicyRule",
|
||||
"properties": {
|
||||
"action": {
|
||||
"description": "The Action to preform when the client connection triggers the rule. Can currently be either \"allow\" or \"deny()\" where valid values for status are 403, 404, and 502.",
|
||||
"description": "The Action to perform when the client connection triggers the rule. Can currently be either \"allow\" or \"deny()\" where valid values for status are 403, 404, and 502.",
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
|
|
@ -64039,21 +64105,30 @@
|
|||
"type": "object"
|
||||
},
|
||||
"ServiceAttachment": {
|
||||
"description": "Represents a ServiceAttachment resource.\n\nA service attachment represents a service that a producer has exposed. It encapsulates the load balancer which fronts the service runs and a list of NAT IP ranges that the producers uses to represent the consumers connecting to the service. next tag = 17",
|
||||
"description": "Represents a ServiceAttachment resource.\n\nA service attachment represents a service that a producer has exposed. It encapsulates the load balancer which fronts the service runs and a list of NAT IP ranges that the producers uses to represent the consumers connecting to the service. next tag = 19",
|
||||
"id": "ServiceAttachment",
|
||||
"properties": {
|
||||
"connectionPreference": {
|
||||
"description": "The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules.",
|
||||
"enum": [
|
||||
"ACCEPT_AUTOMATIC",
|
||||
"ACCEPT_MANUAL",
|
||||
"CONNECTION_PREFERENCE_UNSPECIFIED"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"consumerAcceptLists": {
|
||||
"description": "Projects that are allowed to connect to this service attachment.",
|
||||
"items": {
|
||||
"$ref": "ServiceAttachmentConsumerProjectLimit"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"consumerForwardingRules": {
|
||||
"description": "[Output Only] An array of forwarding rules for all the consumers connected to this service attachment.",
|
||||
"items": {
|
||||
|
|
@ -64061,6 +64136,13 @@
|
|||
},
|
||||
"type": "array"
|
||||
},
|
||||
"consumerRejectLists": {
|
||||
"description": "Projects that are not allowed to connect to this service attachment. The project can be specified using its id or number.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"creationTimestamp": {
|
||||
"description": "[Output Only] Creation timestamp in RFC3339 text format.",
|
||||
"type": "string"
|
||||
|
|
@ -64073,6 +64155,11 @@
|
|||
"description": "If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"fingerprint": {
|
||||
"description": "Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment.",
|
||||
"format": "byte",
|
||||
"type": "string"
|
||||
},
|
||||
"id": {
|
||||
"description": "[Output Only] The unique identifier for the resource type. The server generates this identifier.",
|
||||
"format": "uint64",
|
||||
|
|
@ -64111,6 +64198,10 @@
|
|||
"selfLink": {
|
||||
"description": "[Output Only] Server-defined URL for the resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"targetService": {
|
||||
"description": "The URL of a service serving the endpoint identified by this service attachment.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
|
@ -64240,7 +64331,7 @@
|
|||
"type": "object"
|
||||
},
|
||||
"ServiceAttachmentConsumerForwardingRule": {
|
||||
"description": "[Output Only] A consumer forwarding rule connected to this service attachment.",
|
||||
"description": "[Output Only] A consumer forwarding rule connected to this service attachment. [Deprecated] Do not use.",
|
||||
"id": "ServiceAttachmentConsumerForwardingRule",
|
||||
"properties": {
|
||||
"forwardingRule": {
|
||||
|
|
@ -64251,6 +64342,7 @@
|
|||
"description": "The status of the forwarding rule.",
|
||||
"enum": [
|
||||
"ACCEPTED",
|
||||
"CLOSED",
|
||||
"PENDING",
|
||||
"REJECTED",
|
||||
"STATUS_UNSPECIFIED"
|
||||
|
|
@ -64259,6 +64351,7 @@
|
|||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
|
|
@ -64266,6 +64359,21 @@
|
|||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ServiceAttachmentConsumerProjectLimit": {
|
||||
"id": "ServiceAttachmentConsumerProjectLimit",
|
||||
"properties": {
|
||||
"connectionLimit": {
|
||||
"description": "The value of the limit to set.",
|
||||
"format": "uint32",
|
||||
"type": "integer"
|
||||
},
|
||||
"projectIdOrNum": {
|
||||
"description": "The project id or number for the project to set the limit for.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ServiceAttachmentList": {
|
||||
"id": "ServiceAttachmentList",
|
||||
"properties": {
|
||||
|
|
@ -66008,7 +66116,7 @@
|
|||
"description": "This field denotes the VPC flow logging options for this subnetwork. If logging is enabled, logs are exported to Cloud Logging."
|
||||
},
|
||||
"metadata": {
|
||||
"description": "Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Options are INCLUDE_ALL_METADATA, EXCLUDE_ALL_METADATA, and CUSTOM_METADATA. Default is INCLUDE_ALL_METADATA.",
|
||||
"description": "Can only be specified if VPC flow logging for this subnetwork is enabled. Configures whether metadata fields should be added to the reported VPC flow logs. Options are INCLUDE_ALL_METADATA, EXCLUDE_ALL_METADATA, and CUSTOM_METADATA. Default is EXCLUDE_ALL_METADATA.",
|
||||
"enum": [
|
||||
"EXCLUDE_ALL_METADATA",
|
||||
"INCLUDE_ALL_METADATA"
|
||||
|
|
@ -66420,7 +66528,7 @@
|
|||
"type": "number"
|
||||
},
|
||||
"metadata": {
|
||||
"description": "Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is INCLUDE_ALL_METADATA.",
|
||||
"description": "Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.",
|
||||
"enum": [
|
||||
"CUSTOM_METADATA",
|
||||
"EXCLUDE_ALL_METADATA",
|
||||
|
|
@ -71055,7 +71163,7 @@
|
|||
"type": "integer"
|
||||
},
|
||||
"interconnectAttachment": {
|
||||
"description": "URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; all Egress or Ingress traffic for this VPN Gateway interface will go through the specified interconnect attachment resource.",
|
||||
"description": "URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; all Egress or Ingress traffic for this VPN Gateway interface will go through the specified interconnect attachment resource.\nNot currently available in all Interconnect locations.",
|
||||
"type": "string"
|
||||
},
|
||||
"ipAddress": {
|
||||
|
|
@ -71277,7 +71385,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"description": "[Output Only] The status of the VPN tunnel, which can be one of the following: \n- PROVISIONING: Resource is being allocated for the VPN tunnel. \n- WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. \n- FIRST_HANDSHAKE: Successful first handshake with the peer VPN. \n- ESTABLISHED: Secure session is successfully established with the peer VPN. \n- NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS \n- AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). \n- NEGOTIATION_FAILURE: Handshake failed. \n- DEPROVISIONING: Resources are being deallocated for the VPN tunnel. \n- FAILED: Tunnel creation has failed and the tunnel is not ready to be used. \n- NO_INCOMING_PACKETS: No incoming packets from peer. \n- REJECTED: Tunnel configuration was rejected, can be result of being blacklisted. \n- ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. \n- STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. \n- PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. \n- TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel.",
|
||||
"description": "[Output Only] The status of the VPN tunnel, which can be one of the following: \n- PROVISIONING: Resource is being allocated for the VPN tunnel. \n- WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. \n- FIRST_HANDSHAKE: Successful first handshake with the peer VPN. \n- ESTABLISHED: Secure session is successfully established with the peer VPN. \n- NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS \n- AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). \n- NEGOTIATION_FAILURE: Handshake failed. \n- DEPROVISIONING: Resources are being deallocated for the VPN tunnel. \n- FAILED: Tunnel creation has failed and the tunnel is not ready to be used. \n- NO_INCOMING_PACKETS: No incoming packets from peer. \n- REJECTED: Tunnel configuration was rejected, can be result of being denied access. \n- ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. \n- STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. \n- PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. \n- TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel.",
|
||||
"enum": [
|
||||
"ALLOCATING_RESOURCES",
|
||||
"AUTHORIZATION_ERROR",
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -29,7 +29,7 @@
|
|||
"description": "Creates and runs virtual machines on Google Cloud Platform.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/compute/docs/reference/latest/",
|
||||
"etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/oz4Ox4FGyjrKikcko_NMCcqq4mE\"",
|
||||
"etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/8NH5VUhg7eH5yLGqaLx2Dvdhj6E\"",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/compute_engine-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/compute_engine-32.png"
|
||||
|
|
@ -6597,6 +6597,52 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"imageFamilyViews": {
|
||||
"methods": {
|
||||
"get": {
|
||||
"description": "Returns the latest image that is part of an image family, is not deprecated and is rolled out in the specified zone.",
|
||||
"httpMethod": "GET",
|
||||
"id": "compute.imageFamilyViews.get",
|
||||
"parameterOrder": [
|
||||
"project",
|
||||
"zone",
|
||||
"family"
|
||||
],
|
||||
"parameters": {
|
||||
"family": {
|
||||
"description": "Name of the image family to search for.",
|
||||
"location": "path",
|
||||
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"project": {
|
||||
"description": "Project ID for this request.",
|
||||
"location": "path",
|
||||
"pattern": "(?:(?:[-a-z0-9]{1,63}\\.)*(?:[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?):)?(?:[0-9]{1,19}|(?:[a-z0-9](?:[-a-z0-9]{0,61}[a-z0-9])?))",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
"zone": {
|
||||
"description": "The name of the zone for this request.",
|
||||
"location": "path",
|
||||
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "projects/{project}/zones/{zone}/imageFamilyViews/{family}",
|
||||
"response": {
|
||||
"$ref": "ImageFamilyView"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/compute",
|
||||
"https://www.googleapis.com/auth/compute.readonly"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"images": {
|
||||
"methods": {
|
||||
"delete": {
|
||||
|
|
@ -7803,7 +7849,7 @@
|
|||
]
|
||||
},
|
||||
"recreateInstances": {
|
||||
"description": "Flags the specified instances in the managed instance group to be immediately recreated. The instances are deleted and recreated using the current instance template for the managed instance group. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of the recreating action with the listmanagedinstances method.\n\nIf the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.\n\nYou can specify a maximum of 1000 instances with this method per request.",
|
||||
"description": "Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances.\n\nIf the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.\n\nYou can specify a maximum of 1000 instances with this method per request.",
|
||||
"httpMethod": "POST",
|
||||
"id": "compute.instanceGroupManagers.recreateInstances",
|
||||
"parameterOrder": [
|
||||
|
|
@ -9273,7 +9319,7 @@
|
|||
]
|
||||
},
|
||||
"delete": {
|
||||
"description": "Deletes the specified Instance resource. For more information, see Stopping or Deleting an Instance.",
|
||||
"description": "Deletes the specified Instance resource. For more information, see Deleting an instance.",
|
||||
"httpMethod": "DELETE",
|
||||
"id": "compute.instances.delete",
|
||||
"parameterOrder": [
|
||||
|
|
@ -20118,7 +20164,7 @@
|
|||
]
|
||||
},
|
||||
"recreateInstances": {
|
||||
"description": "Flags the specified instances in the managed instance group to be immediately recreated. The instances are deleted and recreated using the current instance template for the managed instance group. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of the recreating action with the listmanagedinstances method.\n\nIf the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.\n\nYou can specify a maximum of 1000 instances with this method per request.",
|
||||
"description": "Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances.\n\nIf the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.\n\nYou can specify a maximum of 1000 instances with this method per request.",
|
||||
"httpMethod": "POST",
|
||||
"id": "compute.regionInstanceGroupManagers.recreateInstances",
|
||||
"parameterOrder": [
|
||||
|
|
@ -31131,7 +31177,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20210310",
|
||||
"revision": "20210322",
|
||||
"rootUrl": "https://compute.googleapis.com/",
|
||||
"schemas": {
|
||||
"AcceleratorConfig": {
|
||||
|
|
@ -33686,9 +33732,10 @@
|
|||
"type": "string"
|
||||
},
|
||||
"sessionAffinity": {
|
||||
"description": "Type of session affinity to use. The default is NONE.\n\nWhen the loadBalancingScheme is EXTERNAL: * For Network Load Balancing, the possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. * For all other load balancers that use loadBalancingScheme=EXTERNAL, the possible values are NONE, CLIENT_IP, or GENERATED_COOKIE. * You can use GENERATED_COOKIE if the protocol is HTTP, HTTP2, or HTTPS.\n\nWhen the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.\n\nWhen the loadBalancingScheme is INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED, possible values are NONE, CLIENT_IP, GENERATED_COOKIE, HEADER_FIELD, or HTTP_COOKIE.\n\nNot supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.",
|
||||
"description": "Type of session affinity to use. The default is NONE.\n\nWhen the loadBalancingScheme is EXTERNAL: * For Network Load Balancing, the possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. * For all other load balancers that use loadBalancingScheme=EXTERNAL, the possible values are NONE, CLIENT_IP, or GENERATED_COOKIE. * You can use GENERATED_COOKIE if the protocol is HTTP, HTTP2, or HTTPS.\n\nWhen the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.\n\nWhen the loadBalancingScheme is INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED, possible values are NONE, CLIENT_IP, GENERATED_COOKIE, HEADER_FIELD, or HTTP_COOKIE.\n\nNot supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.",
|
||||
"enum": [
|
||||
"CLIENT_IP",
|
||||
"CLIENT_IP_NO_DESTINATION",
|
||||
"CLIENT_IP_PORT_PROTO",
|
||||
"CLIENT_IP_PROTO",
|
||||
"GENERATED_COOKIE",
|
||||
|
|
@ -33703,6 +33750,7 @@
|
|||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
|
|
@ -34581,15 +34629,16 @@
|
|||
"description": "The instance properties defining the VM instances to be created. Required if sourceInstanceTemplate is not provided."
|
||||
},
|
||||
"locationPolicy": {
|
||||
"$ref": "LocationPolicy"
|
||||
"$ref": "LocationPolicy",
|
||||
"description": "Policy for chosing target zone."
|
||||
},
|
||||
"minCount": {
|
||||
"description": "The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created.",
|
||||
"description": "The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"namePattern": {
|
||||
"description": "The string pattern used for the names of the VMs. Either name_pattern or predefined_names must be set. The pattern should contain one consecutive sequence of placeholder hash characters (#) with each character corresponding to one digit of the generated instance name. Example: name_pattern of inst-#### will generate instance names like inst-0001, inst-0002, ... . If there already exist instance(s) whose names match the name pattern in the same project and zone, then the generated instance numbers will start after the biggest existing number. For example, if there exists an instance with name inst-0050, then instance names generated using the pattern inst-#### will be inst-0051, inst-0052, etc. The name pattern placeholder #...# can contain up to 18 characters.",
|
||||
"description": "The string pattern used for the names of the VMs. Either name_pattern or per_instance_properties must be set. The pattern should contain one continuous sequence of placeholder hash characters (#) with each character corresponding to one digit of the generated instance name. Example: name_pattern of inst-#### will generate instance names such as inst-0001, inst-0002, ... . If there already exist instance(s) whose names match the name pattern in the same project and zone, then the generated instance numbers will start after the biggest existing number. For example, if there exists an instance with name inst-0050, then instance names generated using the pattern inst-#### will be inst-0051, inst-0052, etc. The name pattern placeholder #...# can contain up to 18 characters.",
|
||||
"type": "string"
|
||||
},
|
||||
"perInstanceProperties": {
|
||||
|
|
@ -39265,6 +39314,14 @@
|
|||
"description": "Metadata defined as annotations for network endpoint.",
|
||||
"type": "object"
|
||||
},
|
||||
"forwardingRule": {
|
||||
"description": "URL of the forwarding rule associated with the health status of the instance.",
|
||||
"type": "string"
|
||||
},
|
||||
"forwardingRuleIp": {
|
||||
"description": "A forwarding rule IP address assigned to this instance.",
|
||||
"type": "string"
|
||||
},
|
||||
"healthState": {
|
||||
"description": "Health state of the instance.",
|
||||
"enum": [
|
||||
|
|
@ -40329,6 +40386,16 @@
|
|||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ImageFamilyView": {
|
||||
"id": "ImageFamilyView",
|
||||
"properties": {
|
||||
"image": {
|
||||
"$ref": "Image",
|
||||
"description": "The latest image that is part of the specified image family in the requested location, and that is not deprecated."
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ImageList": {
|
||||
"description": "Contains a list of images.",
|
||||
"id": "ImageList",
|
||||
|
|
@ -41727,6 +41794,22 @@
|
|||
],
|
||||
"type": "string"
|
||||
},
|
||||
"mostDisruptiveAllowedAction": {
|
||||
"description": "Most disruptive action that is allowed to be taken on an instance. You can specify either NONE to forbid any actions, REFRESH to allow actions that do not need instance restart, RESTART to allow actions that can be applied without instance replacing or REPLACE to allow all possible actions. If the Updater determines that the minimal update action needed is more disruptive than most disruptive allowed action you specify it will not perform the update at all.",
|
||||
"enum": [
|
||||
"NONE",
|
||||
"REFRESH",
|
||||
"REPLACE",
|
||||
"RESTART"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"replacementMethod": {
|
||||
"description": "What action should be used to replace instances. See minimal_action.REPLACE",
|
||||
"enum": [
|
||||
|
|
@ -43735,7 +43818,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"encryption": {
|
||||
"description": "Indicates the user-supplied encryption option of this interconnect attachment: \n- NONE is the default value, which means that the attachment carries unencrypted traffic. VMs can send traffic to, or receive traffic from, this type of attachment. \n- IPSEC indicates that the attachment carries only traffic encrypted by an IPsec device such as an HA VPN gateway. VMs cannot directly send traffic to, or receive traffic from, such an attachment. To use IPsec-encrypted Cloud Interconnect, create the attachment using this option.",
|
||||
"description": "Indicates the user-supplied encryption option of this interconnect attachment: \n- NONE is the default value, which means that the attachment carries unencrypted traffic. VMs can send traffic to, or receive traffic from, this type of attachment. \n- IPSEC indicates that the attachment carries only traffic encrypted by an IPsec device such as an HA VPN gateway. VMs cannot directly send traffic to, or receive traffic from, such an attachment. To use IPsec-encrypted Cloud Interconnect, create the attachment using this option. \nNot currently available in all Interconnect locations.",
|
||||
"enum": [
|
||||
"IPSEC",
|
||||
"NONE"
|
||||
|
|
@ -43760,7 +43843,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"ipsecInternalAddresses": {
|
||||
"description": "URL of addresses that have been reserved for the interconnect attachment, Used only for interconnect attachment that has the encryption option as IPSEC. The addresses must be RFC 1918 IP address ranges. When creating HA VPN gateway over the interconnect attachment, if the attachment is configured to use an RFC 1918 IP address, then the VPN gateway?s IP address will be allocated from the IP address range specified here. For example, if the HA VPN gateway?s interface 0 is paired to this interconnect attachment, then an RFC 1918 IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this interconnect attachment. If this field is not specified for interconnect attachment that has encryption option as IPSEC, later on when creating HA VPN gateway on this interconnect attachment, the HA VPN gateway's IP address will be allocated from regional external IP address pool.",
|
||||
"description": "URL of addresses that have been reserved for the interconnect attachment, Used only for interconnect attachment that has the encryption option as IPSEC. The addresses must be RFC 1918 IP address ranges. When creating HA VPN gateway over the interconnect attachment, if the attachment is configured to use an RFC 1918 IP address, then the VPN gateway?s IP address will be allocated from the IP address range specified here. For example, if the HA VPN gateway?s interface 0 is paired to this interconnect attachment, then an RFC 1918 IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this interconnect attachment. If this field is not specified for interconnect attachment that has encryption option as IPSEC, later on when creating HA VPN gateway on this interconnect attachment, the HA VPN gateway's IP address will be allocated from regional external IP address pool.\nNot currently available in all Interconnect locations.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
|
|
@ -45159,7 +45242,7 @@
|
|||
"additionalProperties": {
|
||||
"$ref": "LocationPolicyLocation"
|
||||
},
|
||||
"description": "Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, like: zones/us-central1-a.",
|
||||
"description": "Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a.",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
|
|
@ -45169,6 +45252,7 @@
|
|||
"id": "LocationPolicyLocation",
|
||||
"properties": {
|
||||
"preference": {
|
||||
"description": "Preference for a given locaction: ALLOW or DENY.",
|
||||
"enum": [
|
||||
"ALLOW",
|
||||
"DENY",
|
||||
|
|
@ -54508,7 +54592,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"encryptedInterconnectRouter": {
|
||||
"description": "Field to indicate if a router is dedicated to use with encrypted Interconnect Attachment (IPsec-encrypted Cloud Interconnect feature).",
|
||||
"description": "Field to indicate if a router is dedicated to use with encrypted Interconnect Attachment (IPsec-encrypted Cloud Interconnect feature).\nNot currently available in all Interconnect locations.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"id": {
|
||||
|
|
@ -56142,7 +56226,7 @@
|
|||
"id": "SecurityPolicyRule",
|
||||
"properties": {
|
||||
"action": {
|
||||
"description": "The Action to preform when the client connection triggers the rule. Can currently be either \"allow\" or \"deny()\" where valid values for status are 403, 404, and 502.",
|
||||
"description": "The Action to perform when the client connection triggers the rule. Can currently be either \"allow\" or \"deny()\" where valid values for status are 403, 404, and 502.",
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
|
|
@ -56371,7 +56455,7 @@
|
|||
"type": "object"
|
||||
},
|
||||
"ServiceAttachment": {
|
||||
"description": "Represents a ServiceAttachment resource.\n\nA service attachment represents a service that a producer has exposed. It encapsulates the load balancer which fronts the service runs and a list of NAT IP ranges that the producers uses to represent the consumers connecting to the service. next tag = 17",
|
||||
"description": "Represents a ServiceAttachment resource.\n\nA service attachment represents a service that a producer has exposed. It encapsulates the load balancer which fronts the service runs and a list of NAT IP ranges that the producers uses to represent the consumers connecting to the service. next tag = 19",
|
||||
"id": "ServiceAttachment",
|
||||
"properties": {
|
||||
"connectionPreference": {
|
||||
|
|
@ -56443,6 +56527,10 @@
|
|||
"selfLink": {
|
||||
"description": "[Output Only] Server-defined URL for the resource.",
|
||||
"type": "string"
|
||||
},
|
||||
"targetService": {
|
||||
"description": "The URL of a service serving the endpoint identified by this service attachment.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
|
|
@ -56572,7 +56660,7 @@
|
|||
"type": "object"
|
||||
},
|
||||
"ServiceAttachmentConsumerForwardingRule": {
|
||||
"description": "[Output Only] A consumer forwarding rule connected to this service attachment.",
|
||||
"description": "[Output Only] A consumer forwarding rule connected to this service attachment. [Deprecated] Do not use.",
|
||||
"id": "ServiceAttachmentConsumerForwardingRule",
|
||||
"properties": {
|
||||
"forwardingRule": {
|
||||
|
|
@ -56583,6 +56671,7 @@
|
|||
"description": "The status of the forwarding rule.",
|
||||
"enum": [
|
||||
"ACCEPTED",
|
||||
"CLOSED",
|
||||
"PENDING",
|
||||
"REJECTED",
|
||||
"STATUS_UNSPECIFIED"
|
||||
|
|
@ -56591,6 +56680,7 @@
|
|||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
|
|
@ -58595,7 +58685,7 @@
|
|||
"type": "number"
|
||||
},
|
||||
"metadata": {
|
||||
"description": "Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is INCLUDE_ALL_METADATA.",
|
||||
"description": "Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.",
|
||||
"enum": [
|
||||
"CUSTOM_METADATA",
|
||||
"EXCLUDE_ALL_METADATA",
|
||||
|
|
@ -60326,6 +60416,7 @@
|
|||
"description": "Session affinity option, must be one of the following values:\nNONE: Connections from the same client IP may go to any instance in the pool.\nCLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy.\nCLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy.",
|
||||
"enum": [
|
||||
"CLIENT_IP",
|
||||
"CLIENT_IP_NO_DESTINATION",
|
||||
"CLIENT_IP_PORT_PROTO",
|
||||
"CLIENT_IP_PROTO",
|
||||
"GENERATED_COOKIE",
|
||||
|
|
@ -60340,6 +60431,7 @@
|
|||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
|
|
@ -62975,7 +63067,7 @@
|
|||
"type": "integer"
|
||||
},
|
||||
"interconnectAttachment": {
|
||||
"description": "URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; all Egress or Ingress traffic for this VPN Gateway interface will go through the specified interconnect attachment resource.",
|
||||
"description": "URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; all Egress or Ingress traffic for this VPN Gateway interface will go through the specified interconnect attachment resource.\nNot currently available in all Interconnect locations.",
|
||||
"type": "string"
|
||||
},
|
||||
"ipAddress": {
|
||||
|
|
@ -63197,7 +63289,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"description": "[Output Only] The status of the VPN tunnel, which can be one of the following: \n- PROVISIONING: Resource is being allocated for the VPN tunnel. \n- WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. \n- FIRST_HANDSHAKE: Successful first handshake with the peer VPN. \n- ESTABLISHED: Secure session is successfully established with the peer VPN. \n- NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS \n- AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). \n- NEGOTIATION_FAILURE: Handshake failed. \n- DEPROVISIONING: Resources are being deallocated for the VPN tunnel. \n- FAILED: Tunnel creation has failed and the tunnel is not ready to be used. \n- NO_INCOMING_PACKETS: No incoming packets from peer. \n- REJECTED: Tunnel configuration was rejected, can be result of being blacklisted. \n- ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. \n- STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. \n- PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. \n- TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel.",
|
||||
"description": "[Output Only] The status of the VPN tunnel, which can be one of the following: \n- PROVISIONING: Resource is being allocated for the VPN tunnel. \n- WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. \n- FIRST_HANDSHAKE: Successful first handshake with the peer VPN. \n- ESTABLISHED: Secure session is successfully established with the peer VPN. \n- NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS \n- AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). \n- NEGOTIATION_FAILURE: Handshake failed. \n- DEPROVISIONING: Resources are being deallocated for the VPN tunnel. \n- FAILED: Tunnel creation has failed and the tunnel is not ready to be used. \n- NO_INCOMING_PACKETS: No incoming packets from peer. \n- REJECTED: Tunnel configuration was rejected, can be result of being denied access. \n- ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. \n- STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. \n- PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. \n- TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel.",
|
||||
"enum": [
|
||||
"ALLOCATING_RESOURCES",
|
||||
"AUTHORIZATION_ERROR",
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -29,7 +29,7 @@
|
|||
"description": "Creates and runs virtual machines on Google Cloud Platform.",
|
||||
"discoveryVersion": "v1",
|
||||
"documentationLink": "https://developers.google.com/compute/docs/reference/latest/",
|
||||
"etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/9rfyC5OSVJz9l70YzG-HkdI6Hyc\"",
|
||||
"etag": "\"uWj2hSb4GVjzdDlAnRd2gbM1ZQ8/hFkNRjc1rr89Q6jONgNcfqWVWho\"",
|
||||
"icons": {
|
||||
"x16": "https://www.google.com/images/icons/product/compute_engine-16.png",
|
||||
"x32": "https://www.google.com/images/icons/product/compute_engine-32.png"
|
||||
|
|
@ -7211,7 +7211,7 @@
|
|||
]
|
||||
},
|
||||
"recreateInstances": {
|
||||
"description": "Flags the specified instances in the managed instance group to be immediately recreated. The instances are deleted and recreated using the current instance template for the managed instance group. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of the recreating action with the listmanagedinstances method.\n\nIf the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.\n\nYou can specify a maximum of 1000 instances with this method per request.",
|
||||
"description": "Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances.\n\nIf the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.\n\nYou can specify a maximum of 1000 instances with this method per request.",
|
||||
"httpMethod": "POST",
|
||||
"id": "compute.instanceGroupManagers.recreateInstances",
|
||||
"parameterOrder": [
|
||||
|
|
@ -8450,7 +8450,7 @@
|
|||
]
|
||||
},
|
||||
"delete": {
|
||||
"description": "Deletes the specified Instance resource. For more information, see Stopping or Deleting an Instance.",
|
||||
"description": "Deletes the specified Instance resource. For more information, see Deleting an instance.",
|
||||
"httpMethod": "DELETE",
|
||||
"id": "compute.instances.delete",
|
||||
"parameterOrder": [
|
||||
|
|
@ -17738,7 +17738,7 @@
|
|||
]
|
||||
},
|
||||
"recreateInstances": {
|
||||
"description": "Flags the specified instances in the managed instance group to be immediately recreated. The instances are deleted and recreated using the current instance template for the managed instance group. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of the recreating action with the listmanagedinstances method.\n\nIf the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.\n\nYou can specify a maximum of 1000 instances with this method per request.",
|
||||
"description": "Flags the specified VM instances in the managed instance group to be immediately recreated. Each instance is recreated using the group's current configuration. This operation is marked as DONE when the flag is set even if the instances have not yet been recreated. You must separately verify the status of each instance by checking its currentAction field; for more information, see Checking the status of managed instances.\n\nIf the group is part of a backend service that has enabled connection draining, it can take up to 60 seconds after the connection draining duration has elapsed before the VM instance is removed or deleted.\n\nYou can specify a maximum of 1000 instances with this method per request.",
|
||||
"httpMethod": "POST",
|
||||
"id": "compute.regionInstanceGroupManagers.recreateInstances",
|
||||
"parameterOrder": [
|
||||
|
|
@ -27120,7 +27120,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20210310",
|
||||
"revision": "20210322",
|
||||
"rootUrl": "https://compute.googleapis.com/",
|
||||
"schemas": {
|
||||
"AcceleratorConfig": {
|
||||
|
|
@ -28966,6 +28966,18 @@
|
|||
"description": "CPU utilization policy.",
|
||||
"id": "AutoscalingPolicyCpuUtilization",
|
||||
"properties": {
|
||||
"predictiveMethod": {
|
||||
"description": "Indicates whether predictive autoscaling based on CPU metric is enabled. Valid values are:\n\n* NONE (default). No predictive method is used. The autoscaler scales the group to meet current demand based on real-time metrics. * OPTIMIZE_AVAILABILITY. Predictive autoscaling improves availability by monitoring daily and weekly load patterns and scaling out ahead of anticipated demand.",
|
||||
"enum": [
|
||||
"NONE",
|
||||
"OPTIMIZE_AVAILABILITY"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"utilizationTarget": {
|
||||
"description": "The target CPU utilization that the autoscaler maintains. Must be a float value in the range (0, 1]. If not specified, the default is 0.6.\n\nIf the CPU level is below the target utilization, the autoscaler scales in the number of instances until it reaches the minimum number of instances you specified or until the average CPU of your instances reaches the target utilization.\n\nIf the average CPU is above the target utilization, the autoscaler scales out until it reaches the maximum number of instances you specified or until the average utilization reaches the target utilization.",
|
||||
"format": "double",
|
||||
|
|
@ -29252,6 +29264,10 @@
|
|||
},
|
||||
"type": "array"
|
||||
},
|
||||
"requestCoalescing": {
|
||||
"description": "If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number of requests to the origin.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"serveWhileStale": {
|
||||
"description": "Serve existing content from the cache (if available) when revalidating content with the origin, or when an error is encountered when refreshing the cache. This setting defines the default \"max-stale\" duration for any cached responses that do not specify a max-stale directive. Stale responses that exceed the TTL configured here will not be served. The default limit (max-stale) is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max-age (or s-max-age) of a cached response. The maximum allowed value is 604800 (1 week). Set this to zero (0) to disable serve-while-stale.",
|
||||
"format": "int32",
|
||||
|
|
@ -29612,9 +29628,10 @@
|
|||
"type": "string"
|
||||
},
|
||||
"sessionAffinity": {
|
||||
"description": "Type of session affinity to use. The default is NONE.\n\nWhen the loadBalancingScheme is EXTERNAL: * For Network Load Balancing, the possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. * For all other load balancers that use loadBalancingScheme=EXTERNAL, the possible values are NONE, CLIENT_IP, or GENERATED_COOKIE. * You can use GENERATED_COOKIE if the protocol is HTTP, HTTP2, or HTTPS.\n\nWhen the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.\n\nWhen the loadBalancingScheme is INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED, possible values are NONE, CLIENT_IP, GENERATED_COOKIE, HEADER_FIELD, or HTTP_COOKIE.\n\nNot supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.",
|
||||
"description": "Type of session affinity to use. The default is NONE.\n\nWhen the loadBalancingScheme is EXTERNAL: * For Network Load Balancing, the possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. * For all other load balancers that use loadBalancingScheme=EXTERNAL, the possible values are NONE, CLIENT_IP, or GENERATED_COOKIE. * You can use GENERATED_COOKIE if the protocol is HTTP, HTTP2, or HTTPS.\n\nWhen the loadBalancingScheme is INTERNAL, possible values are NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.\n\nWhen the loadBalancingScheme is INTERNAL_SELF_MANAGED, or INTERNAL_MANAGED, possible values are NONE, CLIENT_IP, GENERATED_COOKIE, HEADER_FIELD, or HTTP_COOKIE.\n\nNot supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.",
|
||||
"enum": [
|
||||
"CLIENT_IP",
|
||||
"CLIENT_IP_NO_DESTINATION",
|
||||
"CLIENT_IP_PORT_PROTO",
|
||||
"CLIENT_IP_PROTO",
|
||||
"GENERATED_COOKIE",
|
||||
|
|
@ -29629,6 +29646,7 @@
|
|||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
|
|
@ -29822,6 +29840,10 @@
|
|||
},
|
||||
"type": "array"
|
||||
},
|
||||
"requestCoalescing": {
|
||||
"description": "If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number of requests to the origin.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"serveWhileStale": {
|
||||
"description": "Serve existing content from the cache (if available) when revalidating content with the origin, or when an error is encountered when refreshing the cache. This setting defines the default \"max-stale\" duration for any cached responses that do not specify a max-stale directive. Stale responses that exceed the TTL configured here will not be served. The default limit (max-stale) is 86400s (1 day), which will allow stale content to be served up to this limit beyond the max-age (or s-max-age) of a cached response. The maximum allowed value is 604800 (1 week). Set this to zero (0) to disable serve-while-stale.",
|
||||
"format": "int32",
|
||||
|
|
@ -30216,15 +30238,16 @@
|
|||
"description": "The instance properties defining the VM instances to be created. Required if sourceInstanceTemplate is not provided."
|
||||
},
|
||||
"locationPolicy": {
|
||||
"$ref": "LocationPolicy"
|
||||
"$ref": "LocationPolicy",
|
||||
"description": "Policy for chosing target zone."
|
||||
},
|
||||
"minCount": {
|
||||
"description": "The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created.",
|
||||
"description": "The minimum number of instances to create. If no min_count is specified then count is used as the default value. If min_count instances cannot be created, then no instances will be created and instances already created will be deleted.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"namePattern": {
|
||||
"description": "The string pattern used for the names of the VMs. Either name_pattern or predefined_names must be set. The pattern should contain one consecutive sequence of placeholder hash characters (#) with each character corresponding to one digit of the generated instance name. Example: name_pattern of inst-#### will generate instance names like inst-0001, inst-0002, ... . If there already exist instance(s) whose names match the name pattern in the same project and zone, then the generated instance numbers will start after the biggest existing number. For example, if there exists an instance with name inst-0050, then instance names generated using the pattern inst-#### will be inst-0051, inst-0052, etc. The name pattern placeholder #...# can contain up to 18 characters.",
|
||||
"description": "The string pattern used for the names of the VMs. Either name_pattern or per_instance_properties must be set. The pattern should contain one continuous sequence of placeholder hash characters (#) with each character corresponding to one digit of the generated instance name. Example: name_pattern of inst-#### will generate instance names such as inst-0001, inst-0002, ... . If there already exist instance(s) whose names match the name pattern in the same project and zone, then the generated instance numbers will start after the biggest existing number. For example, if there exists an instance with name inst-0050, then instance names generated using the pattern inst-#### will be inst-0051, inst-0052, etc. The name pattern placeholder #...# can contain up to 18 characters.",
|
||||
"type": "string"
|
||||
},
|
||||
"perInstanceProperties": {
|
||||
|
|
@ -32085,6 +32108,20 @@
|
|||
"DistributionPolicy": {
|
||||
"id": "DistributionPolicy",
|
||||
"properties": {
|
||||
"targetShape": {
|
||||
"description": "The distribution shape to which the group converges either proactively or on resize events (depending on the value set in updatePolicy.instanceRedistributionType).",
|
||||
"enum": [
|
||||
"ANY",
|
||||
"BALANCED",
|
||||
"EVEN"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"zones": {
|
||||
"description": "Zones where the regional managed instance group will create and manage its instances.",
|
||||
"items": {
|
||||
|
|
@ -34803,6 +34840,14 @@
|
|||
"description": "Metadata defined as annotations for network endpoint.",
|
||||
"type": "object"
|
||||
},
|
||||
"forwardingRule": {
|
||||
"description": "URL of the forwarding rule associated with the health status of the instance.",
|
||||
"type": "string"
|
||||
},
|
||||
"forwardingRuleIp": {
|
||||
"description": "A forwarding rule IP address assigned to this instance.",
|
||||
"type": "string"
|
||||
},
|
||||
"healthState": {
|
||||
"description": "Health state of the instance.",
|
||||
"enum": [
|
||||
|
|
@ -39085,7 +39130,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"encryption": {
|
||||
"description": "Indicates the user-supplied encryption option of this interconnect attachment: \n- NONE is the default value, which means that the attachment carries unencrypted traffic. VMs can send traffic to, or receive traffic from, this type of attachment. \n- IPSEC indicates that the attachment carries only traffic encrypted by an IPsec device such as an HA VPN gateway. VMs cannot directly send traffic to, or receive traffic from, such an attachment. To use IPsec-encrypted Cloud Interconnect, create the attachment using this option.",
|
||||
"description": "Indicates the user-supplied encryption option of this interconnect attachment: \n- NONE is the default value, which means that the attachment carries unencrypted traffic. VMs can send traffic to, or receive traffic from, this type of attachment. \n- IPSEC indicates that the attachment carries only traffic encrypted by an IPsec device such as an HA VPN gateway. VMs cannot directly send traffic to, or receive traffic from, such an attachment. To use IPsec-encrypted Cloud Interconnect, create the attachment using this option. \nNot currently available in all Interconnect locations.",
|
||||
"enum": [
|
||||
"IPSEC",
|
||||
"NONE"
|
||||
|
|
@ -39110,7 +39155,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"ipsecInternalAddresses": {
|
||||
"description": "URL of addresses that have been reserved for the interconnect attachment, Used only for interconnect attachment that has the encryption option as IPSEC. The addresses must be RFC 1918 IP address ranges. When creating HA VPN gateway over the interconnect attachment, if the attachment is configured to use an RFC 1918 IP address, then the VPN gateway?s IP address will be allocated from the IP address range specified here. For example, if the HA VPN gateway?s interface 0 is paired to this interconnect attachment, then an RFC 1918 IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this interconnect attachment. If this field is not specified for interconnect attachment that has encryption option as IPSEC, later on when creating HA VPN gateway on this interconnect attachment, the HA VPN gateway's IP address will be allocated from regional external IP address pool.",
|
||||
"description": "URL of addresses that have been reserved for the interconnect attachment, Used only for interconnect attachment that has the encryption option as IPSEC. The addresses must be RFC 1918 IP address ranges. When creating HA VPN gateway over the interconnect attachment, if the attachment is configured to use an RFC 1918 IP address, then the VPN gateway?s IP address will be allocated from the IP address range specified here. For example, if the HA VPN gateway?s interface 0 is paired to this interconnect attachment, then an RFC 1918 IP address for the VPN gateway interface 0 will be allocated from the IP address specified for this interconnect attachment. If this field is not specified for interconnect attachment that has encryption option as IPSEC, later on when creating HA VPN gateway on this interconnect attachment, the HA VPN gateway's IP address will be allocated from regional external IP address pool.\nNot currently available in all Interconnect locations.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
|
|
@ -40497,7 +40542,7 @@
|
|||
"additionalProperties": {
|
||||
"$ref": "LocationPolicyLocation"
|
||||
},
|
||||
"description": "Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, like: zones/us-central1-a.",
|
||||
"description": "Location configurations mapped by location name. Currently only zone names are supported and must be represented as valid internal URLs, such as zones/us-central1-a.",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
|
|
@ -40507,6 +40552,7 @@
|
|||
"id": "LocationPolicyLocation",
|
||||
"properties": {
|
||||
"preference": {
|
||||
"description": "Preference for a given locaction: ALLOW or DENY.",
|
||||
"enum": [
|
||||
"ALLOW",
|
||||
"DENY",
|
||||
|
|
@ -49456,7 +49502,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"encryptedInterconnectRouter": {
|
||||
"description": "Field to indicate if a router is dedicated to use with encrypted Interconnect Attachment (IPsec-encrypted Cloud Interconnect feature).",
|
||||
"description": "Field to indicate if a router is dedicated to use with encrypted Interconnect Attachment (IPsec-encrypted Cloud Interconnect feature).\nNot currently available in all Interconnect locations.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"id": {
|
||||
|
|
@ -50789,7 +50835,7 @@
|
|||
"id": "SecurityPolicyRule",
|
||||
"properties": {
|
||||
"action": {
|
||||
"description": "The Action to preform when the client connection triggers the rule. Can currently be either \"allow\" or \"deny()\" where valid values for status are 403, 404, and 502.",
|
||||
"description": "The Action to perform when the client connection triggers the rule. Can currently be either \"allow\" or \"deny()\" where valid values for status are 403, 404, and 502.",
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
|
|
@ -52542,7 +52588,7 @@
|
|||
"type": "number"
|
||||
},
|
||||
"metadata": {
|
||||
"description": "Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is INCLUDE_ALL_METADATA.",
|
||||
"description": "Can only be specified if VPC flow logs for this subnetwork is enabled. Configures whether all, none or a subset of metadata fields should be added to the reported VPC flow logs. Default is EXCLUDE_ALL_METADATA.",
|
||||
"enum": [
|
||||
"CUSTOM_METADATA",
|
||||
"EXCLUDE_ALL_METADATA",
|
||||
|
|
@ -54144,6 +54190,7 @@
|
|||
"description": "Session affinity option, must be one of the following values:\nNONE: Connections from the same client IP may go to any instance in the pool.\nCLIENT_IP: Connections from the same client IP will go to the same instance in the pool while that instance remains healthy.\nCLIENT_IP_PROTO: Connections from the same client IP with the same IP protocol will go to the same instance in the pool while that instance remains healthy.",
|
||||
"enum": [
|
||||
"CLIENT_IP",
|
||||
"CLIENT_IP_NO_DESTINATION",
|
||||
"CLIENT_IP_PORT_PROTO",
|
||||
"CLIENT_IP_PROTO",
|
||||
"GENERATED_COOKIE",
|
||||
|
|
@ -54158,6 +54205,7 @@
|
|||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
""
|
||||
],
|
||||
"type": "string"
|
||||
|
|
@ -56781,7 +56829,7 @@
|
|||
"type": "integer"
|
||||
},
|
||||
"interconnectAttachment": {
|
||||
"description": "URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; all Egress or Ingress traffic for this VPN Gateway interface will go through the specified interconnect attachment resource.",
|
||||
"description": "URL of the interconnect attachment resource. When the value of this field is present, the VPN Gateway will be used for IPsec-encrypted Cloud Interconnect; all Egress or Ingress traffic for this VPN Gateway interface will go through the specified interconnect attachment resource.\nNot currently available in all Interconnect locations.",
|
||||
"type": "string"
|
||||
},
|
||||
"ipAddress": {
|
||||
|
|
@ -56991,7 +57039,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"status": {
|
||||
"description": "[Output Only] The status of the VPN tunnel, which can be one of the following: \n- PROVISIONING: Resource is being allocated for the VPN tunnel. \n- WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. \n- FIRST_HANDSHAKE: Successful first handshake with the peer VPN. \n- ESTABLISHED: Secure session is successfully established with the peer VPN. \n- NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS \n- AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). \n- NEGOTIATION_FAILURE: Handshake failed. \n- DEPROVISIONING: Resources are being deallocated for the VPN tunnel. \n- FAILED: Tunnel creation has failed and the tunnel is not ready to be used. \n- NO_INCOMING_PACKETS: No incoming packets from peer. \n- REJECTED: Tunnel configuration was rejected, can be result of being blacklisted. \n- ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. \n- STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. \n- PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. \n- TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel.",
|
||||
"description": "[Output Only] The status of the VPN tunnel, which can be one of the following: \n- PROVISIONING: Resource is being allocated for the VPN tunnel. \n- WAITING_FOR_FULL_CONFIG: Waiting to receive all VPN-related configs from the user. Network, TargetVpnGateway, VpnTunnel, ForwardingRule, and Route resources are needed to setup the VPN tunnel. \n- FIRST_HANDSHAKE: Successful first handshake with the peer VPN. \n- ESTABLISHED: Secure session is successfully established with the peer VPN. \n- NETWORK_ERROR: Deprecated, replaced by NO_INCOMING_PACKETS \n- AUTHORIZATION_ERROR: Auth error (for example, bad shared secret). \n- NEGOTIATION_FAILURE: Handshake failed. \n- DEPROVISIONING: Resources are being deallocated for the VPN tunnel. \n- FAILED: Tunnel creation has failed and the tunnel is not ready to be used. \n- NO_INCOMING_PACKETS: No incoming packets from peer. \n- REJECTED: Tunnel configuration was rejected, can be result of being denied access. \n- ALLOCATING_RESOURCES: Cloud VPN is in the process of allocating all required resources. \n- STOPPED: Tunnel is stopped due to its Forwarding Rules being deleted for Classic VPN tunnels or the project is in frozen state. \n- PEER_IDENTITY_MISMATCH: Peer identity does not match peer IP, probably behind NAT. \n- TS_NARROWING_NOT_ALLOWED: Traffic selector narrowing not allowed for an HA-VPN tunnel.",
|
||||
"enum": [
|
||||
"ALLOCATING_RESOURCES",
|
||||
"AUTHORIZATION_ERROR",
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -2459,7 +2459,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20210226",
|
||||
"revision": "20210325",
|
||||
"rootUrl": "https://container.googleapis.com/",
|
||||
"schemas": {
|
||||
"AcceleratorConfig": {
|
||||
|
|
@ -2736,6 +2736,10 @@
|
|||
},
|
||||
"type": "array"
|
||||
},
|
||||
"confidentialNodes": {
|
||||
"$ref": "ConfidentialNodes",
|
||||
"description": "Configuration of Confidential Nodes"
|
||||
},
|
||||
"createTime": {
|
||||
"description": "[Output only] The time the cluster was created, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
|
||||
"type": "string"
|
||||
|
|
@ -3122,6 +3126,17 @@
|
|||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ConfidentialNodes": {
|
||||
"description": "ConfidentialNodes is configuration for the confidential nodes feature, which makes nodes run on confidential VMs.",
|
||||
"id": "ConfidentialNodes",
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"description": "Whether Confidential Nodes feature is enabled for all nodes in this cluster.",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"ConfigConnectorConfig": {
|
||||
"description": "Configuration options for the Config Connector add-on.",
|
||||
"id": "ConfigConnectorConfig",
|
||||
|
|
@ -4127,7 +4142,7 @@
|
|||
"id": "Operation",
|
||||
"properties": {
|
||||
"clusterConditions": {
|
||||
"description": "Which conditions caused the current cluster state.",
|
||||
"description": "Which conditions caused the current cluster state. Deprecated. Use field error instead.",
|
||||
"items": {
|
||||
"$ref": "StatusCondition"
|
||||
},
|
||||
|
|
@ -4141,6 +4156,10 @@
|
|||
"description": "[Output only] The time the operation completed, in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.",
|
||||
"type": "string"
|
||||
},
|
||||
"error": {
|
||||
"$ref": "Status",
|
||||
"description": "The error result of the operation in case of failure."
|
||||
},
|
||||
"location": {
|
||||
"description": "[Output only] The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) or [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) in which the cluster resides.",
|
||||
"type": "string"
|
||||
|
|
@ -4150,7 +4169,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"nodepoolConditions": {
|
||||
"description": "Which conditions caused the current node pool state.",
|
||||
"description": "Which conditions caused the current node pool state. Deprecated. Use field error instead.",
|
||||
"items": {
|
||||
"$ref": "StatusCondition"
|
||||
},
|
||||
|
|
@ -4230,7 +4249,7 @@
|
|||
"type": "string"
|
||||
},
|
||||
"statusMessage": {
|
||||
"description": "Output only. If an error has occurred, a textual description of the error.",
|
||||
"description": "Output only. If an error has occurred, a textual description of the error. Deprecated. Use the field error instead.",
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
},
|
||||
|
|
@ -5000,12 +5019,81 @@
|
|||
},
|
||||
"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). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
|
||||
"id": "Status",
|
||||
"properties": {
|
||||
"code": {
|
||||
"description": "The status code, which should be an enum value of google.rpc.Code.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"details": {
|
||||
"description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
|
||||
"items": {
|
||||
"additionalProperties": {
|
||||
"description": "Properties of the object. Contains field @type with type URL.",
|
||||
"type": "any"
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"message": {
|
||||
"description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"StatusCondition": {
|
||||
"description": "StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).",
|
||||
"id": "StatusCondition",
|
||||
"properties": {
|
||||
"canonicalCode": {
|
||||
"description": "Canonical code of the condition.",
|
||||
"enum": [
|
||||
"OK",
|
||||
"CANCELLED",
|
||||
"UNKNOWN",
|
||||
"INVALID_ARGUMENT",
|
||||
"DEADLINE_EXCEEDED",
|
||||
"NOT_FOUND",
|
||||
"ALREADY_EXISTS",
|
||||
"PERMISSION_DENIED",
|
||||
"UNAUTHENTICATED",
|
||||
"RESOURCE_EXHAUSTED",
|
||||
"FAILED_PRECONDITION",
|
||||
"ABORTED",
|
||||
"OUT_OF_RANGE",
|
||||
"UNIMPLEMENTED",
|
||||
"INTERNAL",
|
||||
"UNAVAILABLE",
|
||||
"DATA_LOSS"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Not an error; returned on success HTTP Mapping: 200 OK",
|
||||
"The operation was cancelled, typically by the caller. HTTP Mapping: 499 Client Closed Request",
|
||||
"Unknown error. For example, this error may be returned when a `Status` value received from another address space belongs to an error space that is not known in this address space. Also errors raised by APIs that do not return enough error information may be converted to this error. HTTP Mapping: 500 Internal Server Error",
|
||||
"The client specified an invalid argument. Note that this differs from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments that are problematic regardless of the state of the system (e.g., a malformed file name). HTTP Mapping: 400 Bad Request",
|
||||
"The deadline expired before the operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire. HTTP Mapping: 504 Gateway Timeout",
|
||||
"Some requested entity (e.g., file or directory) was not found. Note to server developers: if a request is denied for an entire class of users, such as gradual feature rollout or undocumented allowlist, `NOT_FOUND` may be used. If a request is denied for some users within a class of users, such as user-based access control, `PERMISSION_DENIED` must be used. HTTP Mapping: 404 Not Found",
|
||||
"The entity that a client attempted to create (e.g., file or directory) already exists. HTTP Mapping: 409 Conflict",
|
||||
"The caller does not have permission to execute the specified operation. `PERMISSION_DENIED` must not be used for rejections caused by exhausting some resource (use `RESOURCE_EXHAUSTED` instead for those errors). `PERMISSION_DENIED` must not be used if the caller can not be identified (use `UNAUTHENTICATED` instead for those errors). This error code does not imply the request is valid or the requested entity exists or satisfies other pre-conditions. HTTP Mapping: 403 Forbidden",
|
||||
"The request does not have valid authentication credentials for the operation. HTTP Mapping: 401 Unauthorized",
|
||||
"Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. HTTP Mapping: 429 Too Many Requests",
|
||||
"The operation was rejected because the system is not in a state required for the operation's execution. For example, the directory to be deleted is non-empty, an rmdir operation is applied to a non-directory, etc. Service implementors can use the following guidelines to decide between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`: (a) Use `UNAVAILABLE` if the client can retry just the failing call. (b) Use `ABORTED` if the client should retry at a higher level (e.g., when a client-specified test-and-set fails, indicating the client should restart a read-modify-write sequence). (c) Use `FAILED_PRECONDITION` if the client should not retry until the system state has been explicitly fixed. E.g., if an \"rmdir\" fails because the directory is non-empty, `FAILED_PRECONDITION` should be returned since the client should not retry unless the files are deleted from the directory. HTTP Mapping: 400 Bad Request",
|
||||
"The operation was aborted, typically due to a concurrency issue such as a sequencer check failure or transaction abort. See the guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: 409 Conflict",
|
||||
"The operation was attempted past the valid range. E.g., seeking or reading past end-of-file. Unlike `INVALID_ARGUMENT`, this error indicates a problem that may be fixed if the system state changes. For example, a 32-bit file system will generate `INVALID_ARGUMENT` if asked to read at an offset that is not in the range [0,2^32-1], but it will generate `OUT_OF_RANGE` if asked to read from an offset past the current file size. There is a fair bit of overlap between `FAILED_PRECONDITION` and `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific error) when it applies so that callers who are iterating through a space can easily look for an `OUT_OF_RANGE` error to detect when they are done. HTTP Mapping: 400 Bad Request",
|
||||
"The operation is not implemented or is not supported/enabled in this service. HTTP Mapping: 501 Not Implemented",
|
||||
"Internal errors. This means that some invariants expected by the underlying system have been broken. This error code is reserved for serious errors. HTTP Mapping: 500 Internal Server Error",
|
||||
"The service is currently unavailable. This is most likely a transient condition, which can be corrected by retrying with a backoff. Note that it is not always safe to retry non-idempotent operations. See the guidelines above for deciding between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`. HTTP Mapping: 503 Service Unavailable",
|
||||
"Unrecoverable data loss or corruption. HTTP Mapping: 500 Internal Server Error"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"code": {
|
||||
"description": "Machine-friendly representation of the condition",
|
||||
"description": "Machine-friendly representation of the condition Deprecated. Use canonical_code instead.",
|
||||
"enum": [
|
||||
"UNKNOWN",
|
||||
"GCE_STOCKOUT",
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -3,7 +3,7 @@
|
|||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "View and manage your data across Google Cloud Platform services"
|
||||
"description": "See, edit, configure, and delete your Google Cloud Platform data"
|
||||
},
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only": {
|
||||
"description": "View your data across Google Cloud Platform services"
|
||||
|
|
@ -1245,7 +1245,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20210314",
|
||||
"revision": "20210319",
|
||||
"rootUrl": "https://dns.googleapis.com/",
|
||||
"schemas": {
|
||||
"Change": {
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ const mtlsBasePath = "https://dns.mtls.googleapis.com/"
|
|||
|
||||
// OAuth2 scopes used by this API.
|
||||
const (
|
||||
// View and manage your data across Google Cloud Platform services
|
||||
// See, edit, configure, and delete your Google Cloud Platform data
|
||||
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
|
||||
|
||||
// View your data across Google Cloud Platform services
|
||||
|
|
@ -1837,6 +1837,10 @@ type ChangesCreateCall struct {
|
|||
}
|
||||
|
||||
// Create: Atomically updates the ResourceRecordSet collection.
|
||||
//
|
||||
// - managedZone: Identifies the managed zone addressed by this request.
|
||||
// Can be the managed zone name or ID.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *ChangesService) Create(project string, managedZone string, change *Change) *ChangesCreateCall {
|
||||
c := &ChangesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -1881,7 +1885,7 @@ func (c *ChangesCreateCall) Header() http.Header {
|
|||
|
||||
func (c *ChangesCreateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -2002,6 +2006,12 @@ type ChangesGetCall struct {
|
|||
}
|
||||
|
||||
// Get: Fetches the representation of an existing Change.
|
||||
//
|
||||
// - changeId: The identifier of the requested change, from a previous
|
||||
// ResourceRecordSetsChangeResponse.
|
||||
// - managedZone: Identifies the managed zone addressed by this request.
|
||||
// Can be the managed zone name or ID.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *ChangesService) Get(project string, managedZone string, changeId string) *ChangesGetCall {
|
||||
c := &ChangesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -2056,7 +2066,7 @@ func (c *ChangesGetCall) Header() http.Header {
|
|||
|
||||
func (c *ChangesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -2181,6 +2191,10 @@ type ChangesListCall struct {
|
|||
}
|
||||
|
||||
// List: Enumerates Changes to a ResourceRecordSet collection.
|
||||
//
|
||||
// - managedZone: Identifies the managed zone addressed by this request.
|
||||
// Can be the managed zone name or ID.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *ChangesService) List(project string, managedZone string) *ChangesListCall {
|
||||
c := &ChangesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -2258,7 +2272,7 @@ func (c *ChangesListCall) Header() http.Header {
|
|||
|
||||
func (c *ChangesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -2420,6 +2434,11 @@ type DnsKeysGetCall struct {
|
|||
}
|
||||
|
||||
// Get: Fetches the representation of an existing DnsKey.
|
||||
//
|
||||
// - dnsKeyId: The identifier of the requested DnsKey.
|
||||
// - managedZone: Identifies the managed zone addressed by this request.
|
||||
// Can be the managed zone name or ID.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *DnsKeysService) Get(project string, managedZone string, dnsKeyId string) *DnsKeysGetCall {
|
||||
c := &DnsKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -2483,7 +2502,7 @@ func (c *DnsKeysGetCall) Header() http.Header {
|
|||
|
||||
func (c *DnsKeysGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -2613,6 +2632,10 @@ type DnsKeysListCall struct {
|
|||
}
|
||||
|
||||
// List: Enumerates DnsKeys to a ResourceRecordSet collection.
|
||||
//
|
||||
// - managedZone: Identifies the managed zone addressed by this request.
|
||||
// Can be the managed zone name or ID.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *DnsKeysService) List(project string, managedZone string) *DnsKeysListCall {
|
||||
c := &DnsKeysListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -2682,7 +2705,7 @@ func (c *DnsKeysListCall) Header() http.Header {
|
|||
|
||||
func (c *DnsKeysListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -2832,6 +2855,11 @@ type ManagedZoneOperationsGetCall struct {
|
|||
}
|
||||
|
||||
// Get: Fetches the representation of an existing Operation.
|
||||
//
|
||||
// - managedZone: Identifies the managed zone addressed by this request.
|
||||
// - operation: Identifies the operation addressed by this request (ID
|
||||
// of the operation).
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *ManagedZoneOperationsService) Get(project string, managedZone string, operation string) *ManagedZoneOperationsGetCall {
|
||||
c := &ManagedZoneOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -2886,7 +2914,7 @@ func (c *ManagedZoneOperationsGetCall) Header() http.Header {
|
|||
|
||||
func (c *ManagedZoneOperationsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -3011,6 +3039,9 @@ type ManagedZoneOperationsListCall struct {
|
|||
}
|
||||
|
||||
// List: Enumerates Operations for the given ManagedZone.
|
||||
//
|
||||
// - managedZone: Identifies the managed zone addressed by this request.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *ManagedZoneOperationsService) List(project string, managedZone string) *ManagedZoneOperationsListCall {
|
||||
c := &ManagedZoneOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -3082,7 +3113,7 @@ func (c *ManagedZoneOperationsListCall) Header() http.Header {
|
|||
|
||||
func (c *ManagedZoneOperationsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -3240,6 +3271,8 @@ type ManagedZonesCreateCall struct {
|
|||
}
|
||||
|
||||
// Create: Creates a new ManagedZone.
|
||||
//
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *ManagedZonesService) Create(project string, managedzone *ManagedZone) *ManagedZonesCreateCall {
|
||||
c := &ManagedZonesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -3283,7 +3316,7 @@ func (c *ManagedZonesCreateCall) Header() http.Header {
|
|||
|
||||
func (c *ManagedZonesCreateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -3394,6 +3427,10 @@ type ManagedZonesDeleteCall struct {
|
|||
}
|
||||
|
||||
// Delete: Deletes a previously created ManagedZone.
|
||||
//
|
||||
// - managedZone: Identifies the managed zone addressed by this request.
|
||||
// Can be the managed zone name or ID.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *ManagedZonesService) Delete(project string, managedZone string) *ManagedZonesDeleteCall {
|
||||
c := &ManagedZonesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -3437,7 +3474,7 @@ func (c *ManagedZonesDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *ManagedZonesDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -3521,6 +3558,10 @@ type ManagedZonesGetCall struct {
|
|||
}
|
||||
|
||||
// Get: Fetches the representation of an existing ManagedZone.
|
||||
//
|
||||
// - managedZone: Identifies the managed zone addressed by this request.
|
||||
// Can be the managed zone name or ID.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *ManagedZonesService) Get(project string, managedZone string) *ManagedZonesGetCall {
|
||||
c := &ManagedZonesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -3574,7 +3615,7 @@ func (c *ManagedZonesGetCall) Header() http.Header {
|
|||
|
||||
func (c *ManagedZonesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -3691,6 +3732,8 @@ type ManagedZonesListCall struct {
|
|||
|
||||
// List: Enumerates ManagedZones that have been created but not yet
|
||||
// deleted.
|
||||
//
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *ManagedZonesService) List(project string) *ManagedZonesListCall {
|
||||
c := &ManagedZonesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -3757,7 +3800,7 @@ func (c *ManagedZonesListCall) Header() http.Header {
|
|||
|
||||
func (c *ManagedZonesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -3898,6 +3941,10 @@ type ManagedZonesPatchCall struct {
|
|||
}
|
||||
|
||||
// Patch: Applies a partial update to an existing ManagedZone.
|
||||
//
|
||||
// - managedZone: Identifies the managed zone addressed by this request.
|
||||
// Can be the managed zone name or ID.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *ManagedZonesService) Patch(project string, managedZone string, managedzone *ManagedZone) *ManagedZonesPatchCall {
|
||||
c := &ManagedZonesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -3942,7 +3989,7 @@ func (c *ManagedZonesPatchCall) Header() http.Header {
|
|||
|
||||
func (c *ManagedZonesPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -4062,6 +4109,10 @@ type ManagedZonesUpdateCall struct {
|
|||
}
|
||||
|
||||
// Update: Updates an existing ManagedZone.
|
||||
//
|
||||
// - managedZone: Identifies the managed zone addressed by this request.
|
||||
// Can be the managed zone name or ID.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *ManagedZonesService) Update(project string, managedZone string, managedzone *ManagedZone) *ManagedZonesUpdateCall {
|
||||
c := &ManagedZonesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -4106,7 +4157,7 @@ func (c *ManagedZonesUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *ManagedZonesUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -4225,6 +4276,8 @@ type PoliciesCreateCall struct {
|
|||
}
|
||||
|
||||
// Create: Creates a new Policy.
|
||||
//
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *PoliciesService) Create(project string, policy *Policy) *PoliciesCreateCall {
|
||||
c := &PoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -4268,7 +4321,7 @@ func (c *PoliciesCreateCall) Header() http.Header {
|
|||
|
||||
func (c *PoliciesCreateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -4380,6 +4433,10 @@ type PoliciesDeleteCall struct {
|
|||
|
||||
// Delete: Deletes a previously created Policy. Fails if the policy is
|
||||
// still being referenced by a network.
|
||||
//
|
||||
// - policy: User given friendly name of the policy addressed by this
|
||||
// request.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *PoliciesService) Delete(project string, policy string) *PoliciesDeleteCall {
|
||||
c := &PoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -4423,7 +4480,7 @@ func (c *PoliciesDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *PoliciesDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -4507,6 +4564,10 @@ type PoliciesGetCall struct {
|
|||
}
|
||||
|
||||
// Get: Fetches the representation of an existing Policy.
|
||||
//
|
||||
// - policy: User given friendly name of the policy addressed by this
|
||||
// request.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *PoliciesService) Get(project string, policy string) *PoliciesGetCall {
|
||||
c := &PoliciesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -4560,7 +4621,7 @@ func (c *PoliciesGetCall) Header() http.Header {
|
|||
|
||||
func (c *PoliciesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -4676,6 +4737,8 @@ type PoliciesListCall struct {
|
|||
}
|
||||
|
||||
// List: Enumerates all Policies associated with a project.
|
||||
//
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *PoliciesService) List(project string) *PoliciesListCall {
|
||||
c := &PoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -4735,7 +4798,7 @@ func (c *PoliciesListCall) Header() http.Header {
|
|||
|
||||
func (c *PoliciesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -4871,6 +4934,10 @@ type PoliciesPatchCall struct {
|
|||
}
|
||||
|
||||
// Patch: Applies a partial update to an existing Policy.
|
||||
//
|
||||
// - policy: User given friendly name of the policy addressed by this
|
||||
// request.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *PoliciesService) Patch(project string, policy string, policy2 *Policy) *PoliciesPatchCall {
|
||||
c := &PoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -4915,7 +4982,7 @@ func (c *PoliciesPatchCall) Header() http.Header {
|
|||
|
||||
func (c *PoliciesPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -5035,6 +5102,10 @@ type PoliciesUpdateCall struct {
|
|||
}
|
||||
|
||||
// Update: Updates an existing Policy.
|
||||
//
|
||||
// - policy: User given friendly name of the policy addressed by this
|
||||
// request.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *PoliciesService) Update(project string, policy string, policy2 *Policy) *PoliciesUpdateCall {
|
||||
c := &PoliciesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -5079,7 +5150,7 @@ func (c *PoliciesUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *PoliciesUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -5198,6 +5269,8 @@ type ProjectsGetCall struct {
|
|||
}
|
||||
|
||||
// Get: Fetches the representation of an existing Project.
|
||||
//
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *ProjectsService) Get(project string) *ProjectsGetCall {
|
||||
c := &ProjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -5250,7 +5323,7 @@ func (c *ProjectsGetCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -5359,6 +5432,10 @@ type ProjectsManagedZonesRrsetsCreateCall struct {
|
|||
}
|
||||
|
||||
// Create: Creates a new ResourceRecordSet.
|
||||
//
|
||||
// - managedZone: Identifies the managed zone addressed by this request.
|
||||
// Can be the managed zone name or ID.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *ProjectsManagedZonesRrsetsService) Create(project string, managedZone string, resourcerecordset *ResourceRecordSet) *ProjectsManagedZonesRrsetsCreateCall {
|
||||
c := &ProjectsManagedZonesRrsetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -5403,7 +5480,7 @@ func (c *ProjectsManagedZonesRrsetsCreateCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsManagedZonesRrsetsCreateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -5524,6 +5601,12 @@ type ProjectsManagedZonesRrsetsDeleteCall struct {
|
|||
}
|
||||
|
||||
// Delete: Deletes a previously created ResourceRecordSet.
|
||||
//
|
||||
// - managedZone: Identifies the managed zone addressed by this request.
|
||||
// Can be the managed zone name or ID.
|
||||
// - name: Fully qualified domain name.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
// - type: RRSet type.
|
||||
func (r *ProjectsManagedZonesRrsetsService) Delete(project string, managedZone string, name string, type_ string) *ProjectsManagedZonesRrsetsDeleteCall {
|
||||
c := &ProjectsManagedZonesRrsetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -5569,7 +5652,7 @@ func (c *ProjectsManagedZonesRrsetsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsManagedZonesRrsetsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -5699,6 +5782,12 @@ type ProjectsManagedZonesRrsetsGetCall struct {
|
|||
}
|
||||
|
||||
// Get: Fetches the representation of an existing ResourceRecordSet.
|
||||
//
|
||||
// - managedZone: Identifies the managed zone addressed by this request.
|
||||
// Can be the managed zone name or ID.
|
||||
// - name: Fully qualified domain name.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
// - type: RRSet type.
|
||||
func (r *ProjectsManagedZonesRrsetsService) Get(project string, managedZone string, name string, type_ string) *ProjectsManagedZonesRrsetsGetCall {
|
||||
c := &ProjectsManagedZonesRrsetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -5754,7 +5843,7 @@ func (c *ProjectsManagedZonesRrsetsGetCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsManagedZonesRrsetsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -5889,6 +5978,12 @@ type ProjectsManagedZonesRrsetsPatchCall struct {
|
|||
}
|
||||
|
||||
// Patch: Applies a partial update to an existing ResourceRecordSet.
|
||||
//
|
||||
// - managedZone: Identifies the managed zone addressed by this request.
|
||||
// Can be the managed zone name or ID.
|
||||
// - name: Fully qualified domain name.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
// - type: RRSet type.
|
||||
func (r *ProjectsManagedZonesRrsetsService) Patch(project string, managedZone string, name string, type_ string, resourcerecordset *ResourceRecordSet) *ProjectsManagedZonesRrsetsPatchCall {
|
||||
c := &ProjectsManagedZonesRrsetsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -5935,7 +6030,7 @@ func (c *ProjectsManagedZonesRrsetsPatchCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsManagedZonesRrsetsPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -6072,6 +6167,10 @@ type ResourceRecordSetsListCall struct {
|
|||
|
||||
// List: Enumerates ResourceRecordSets that you have created but not yet
|
||||
// deleted.
|
||||
//
|
||||
// - managedZone: Identifies the managed zone addressed by this request.
|
||||
// Can be the managed zone name or ID.
|
||||
// - project: Identifies the project addressed by this request.
|
||||
func (r *ResourceRecordSetsService) List(project string, managedZone string) *ResourceRecordSetsListCall {
|
||||
c := &ResourceRecordSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
|
|
@ -6147,7 +6246,7 @@ func (c *ResourceRecordSetsListCall) Header() http.Header {
|
|||
|
||||
func (c *ResourceRecordSetsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "View and manage your data across Google Cloud Platform services"
|
||||
"description": "See, edit, configure, and delete your Google Cloud Platform data"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1696,7 +1696,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20210226",
|
||||
"revision": "20210325",
|
||||
"rootUrl": "https://iam.googleapis.com/",
|
||||
"schemas": {
|
||||
"AdminAuditData": {
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -353,7 +353,7 @@ func (c *TokeninfoCall) Header() http.Header {
|
|||
|
||||
func (c *TokeninfoCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -482,7 +482,7 @@ func (c *UserinfoGetCall) Header() http.Header {
|
|||
|
||||
func (c *UserinfoGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -609,7 +609,7 @@ func (c *UserinfoV2MeGetCall) Header() http.Header {
|
|||
|
||||
func (c *UserinfoV2MeGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2400,6 +2400,11 @@ type BucketAccessControlsDeleteCall struct {
|
|||
|
||||
// Delete: Permanently deletes the ACL entry for the specified entity on
|
||||
// the specified bucket.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
// - entity: The entity holding the permission. Can be user-userId,
|
||||
// user-emailAddress, group-groupId, group-emailAddress, allUsers, or
|
||||
// allAuthenticatedUsers.
|
||||
func (r *BucketAccessControlsService) Delete(bucket string, entity string) *BucketAccessControlsDeleteCall {
|
||||
c := &BucketAccessControlsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -2449,7 +2454,7 @@ func (c *BucketAccessControlsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *BucketAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -2538,6 +2543,11 @@ type BucketAccessControlsGetCall struct {
|
|||
|
||||
// Get: Returns the ACL entry for the specified entity on the specified
|
||||
// bucket.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
// - entity: The entity holding the permission. Can be user-userId,
|
||||
// user-emailAddress, group-groupId, group-emailAddress, allUsers, or
|
||||
// allAuthenticatedUsers.
|
||||
func (r *BucketAccessControlsService) Get(bucket string, entity string) *BucketAccessControlsGetCall {
|
||||
c := &BucketAccessControlsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -2597,7 +2607,7 @@ func (c *BucketAccessControlsGetCall) Header() http.Header {
|
|||
|
||||
func (c *BucketAccessControlsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -2715,6 +2725,8 @@ type BucketAccessControlsInsertCall struct {
|
|||
}
|
||||
|
||||
// Insert: Creates a new ACL entry on the specified bucket.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
func (r *BucketAccessControlsService) Insert(bucket string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsInsertCall {
|
||||
c := &BucketAccessControlsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -2764,7 +2776,7 @@ func (c *BucketAccessControlsInsertCall) Header() http.Header {
|
|||
|
||||
func (c *BucketAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -2879,6 +2891,8 @@ type BucketAccessControlsListCall struct {
|
|||
}
|
||||
|
||||
// List: Retrieves ACL entries on the specified bucket.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
func (r *BucketAccessControlsService) List(bucket string) *BucketAccessControlsListCall {
|
||||
c := &BucketAccessControlsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -2937,7 +2951,7 @@ func (c *BucketAccessControlsListCall) Header() http.Header {
|
|||
|
||||
func (c *BucketAccessControlsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -3048,6 +3062,11 @@ type BucketAccessControlsPatchCall struct {
|
|||
}
|
||||
|
||||
// Patch: Patches an ACL entry on the specified bucket.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
// - entity: The entity holding the permission. Can be user-userId,
|
||||
// user-emailAddress, group-groupId, group-emailAddress, allUsers, or
|
||||
// allAuthenticatedUsers.
|
||||
func (r *BucketAccessControlsService) Patch(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsPatchCall {
|
||||
c := &BucketAccessControlsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -3098,7 +3117,7 @@ func (c *BucketAccessControlsPatchCall) Header() http.Header {
|
|||
|
||||
func (c *BucketAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -3222,6 +3241,11 @@ type BucketAccessControlsUpdateCall struct {
|
|||
}
|
||||
|
||||
// Update: Updates an ACL entry on the specified bucket.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
// - entity: The entity holding the permission. Can be user-userId,
|
||||
// user-emailAddress, group-groupId, group-emailAddress, allUsers, or
|
||||
// allAuthenticatedUsers.
|
||||
func (r *BucketAccessControlsService) Update(bucket string, entity string, bucketaccesscontrol *BucketAccessControl) *BucketAccessControlsUpdateCall {
|
||||
c := &BucketAccessControlsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -3272,7 +3296,7 @@ func (c *BucketAccessControlsUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *BucketAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -3394,6 +3418,8 @@ type BucketsDeleteCall struct {
|
|||
}
|
||||
|
||||
// Delete: Permanently deletes an empty bucket.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
func (r *BucketsService) Delete(bucket string) *BucketsDeleteCall {
|
||||
c := &BucketsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -3458,7 +3484,7 @@ func (c *BucketsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -3550,6 +3576,8 @@ type BucketsGetCall struct {
|
|||
}
|
||||
|
||||
// Get: Returns metadata for the specified bucket.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
func (r *BucketsService) Get(bucket string) *BucketsGetCall {
|
||||
c := &BucketsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -3637,7 +3665,7 @@ func (c *BucketsGetCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -3775,6 +3803,8 @@ type BucketsGetIamPolicyCall struct {
|
|||
}
|
||||
|
||||
// GetIamPolicy: Returns an IAM policy for the specified bucket.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
func (r *BucketsService) GetIamPolicy(bucket string) *BucketsGetIamPolicyCall {
|
||||
c := &BucketsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -3843,7 +3873,7 @@ func (c *BucketsGetIamPolicyCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -3959,6 +3989,8 @@ type BucketsInsertCall struct {
|
|||
}
|
||||
|
||||
// Insert: Creates a new bucket.
|
||||
//
|
||||
// - project: A valid API project identifier.
|
||||
func (r *BucketsService) Insert(projectid string, bucket *Bucket) *BucketsInsertCall {
|
||||
c := &BucketsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.urlParams_.Set("project", projectid)
|
||||
|
|
@ -4060,7 +4092,7 @@ func (c *BucketsInsertCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -4225,6 +4257,8 @@ type BucketsListCall struct {
|
|||
}
|
||||
|
||||
// List: Retrieves a list of buckets for a given project.
|
||||
//
|
||||
// - project: A valid API project identifier.
|
||||
func (r *BucketsService) List(projectid string) *BucketsListCall {
|
||||
c := &BucketsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.urlParams_.Set("project", projectid)
|
||||
|
|
@ -4317,7 +4351,7 @@ func (c *BucketsListCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -4478,6 +4512,10 @@ type BucketsLockRetentionPolicyCall struct {
|
|||
}
|
||||
|
||||
// LockRetentionPolicy: Locks retention policy on a bucket.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
// - ifMetagenerationMatch: Makes the operation conditional on whether
|
||||
// bucket's current metageneration matches the given value.
|
||||
func (r *BucketsService) LockRetentionPolicy(bucket string, ifMetagenerationMatch int64) *BucketsLockRetentionPolicyCall {
|
||||
c := &BucketsLockRetentionPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -4527,7 +4565,7 @@ func (c *BucketsLockRetentionPolicyCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsLockRetentionPolicyCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -4645,6 +4683,8 @@ type BucketsPatchCall struct {
|
|||
// Patch: Patches a bucket. Changes to the bucket will be readable
|
||||
// immediately after writing, but configuration changes may take time to
|
||||
// propagate.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
func (r *BucketsService) Patch(bucket string, bucket2 *Bucket) *BucketsPatchCall {
|
||||
c := &BucketsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -4762,7 +4802,7 @@ func (c *BucketsPatchCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -4942,6 +4982,8 @@ type BucketsSetIamPolicyCall struct {
|
|||
}
|
||||
|
||||
// SetIamPolicy: Updates an IAM policy for the specified bucket.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
func (r *BucketsService) SetIamPolicy(bucket string, policy *Policy) *BucketsSetIamPolicyCall {
|
||||
c := &BucketsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -4991,7 +5033,7 @@ func (c *BucketsSetIamPolicyCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -5107,6 +5149,9 @@ type BucketsTestIamPermissionsCall struct {
|
|||
|
||||
// TestIamPermissions: Tests a set of permissions on the given bucket to
|
||||
// see which, if any, are held by the caller.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
// - permissions: Permissions to test.
|
||||
func (r *BucketsService) TestIamPermissions(bucket string, permissions []string) *BucketsTestIamPermissionsCall {
|
||||
c := &BucketsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -5166,7 +5211,7 @@ func (c *BucketsTestIamPermissionsCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -5289,6 +5334,8 @@ type BucketsUpdateCall struct {
|
|||
// Update: Updates a bucket. Changes to the bucket will be readable
|
||||
// immediately after writing, but configuration changes may take time to
|
||||
// propagate.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
func (r *BucketsService) Update(bucket string, bucket2 *Bucket) *BucketsUpdateCall {
|
||||
c := &BucketsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -5406,7 +5453,7 @@ func (c *BucketsUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *BucketsUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -5618,7 +5665,7 @@ func (c *ChannelsStopCall) Header() http.Header {
|
|||
|
||||
func (c *ChannelsStopCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -5686,6 +5733,11 @@ type DefaultObjectAccessControlsDeleteCall struct {
|
|||
|
||||
// Delete: Permanently deletes the default object ACL entry for the
|
||||
// specified entity on the specified bucket.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
// - entity: The entity holding the permission. Can be user-userId,
|
||||
// user-emailAddress, group-groupId, group-emailAddress, allUsers, or
|
||||
// allAuthenticatedUsers.
|
||||
func (r *DefaultObjectAccessControlsService) Delete(bucket string, entity string) *DefaultObjectAccessControlsDeleteCall {
|
||||
c := &DefaultObjectAccessControlsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -5735,7 +5787,7 @@ func (c *DefaultObjectAccessControlsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *DefaultObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -5824,6 +5876,11 @@ type DefaultObjectAccessControlsGetCall struct {
|
|||
|
||||
// Get: Returns the default object ACL entry for the specified entity on
|
||||
// the specified bucket.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
// - entity: The entity holding the permission. Can be user-userId,
|
||||
// user-emailAddress, group-groupId, group-emailAddress, allUsers, or
|
||||
// allAuthenticatedUsers.
|
||||
func (r *DefaultObjectAccessControlsService) Get(bucket string, entity string) *DefaultObjectAccessControlsGetCall {
|
||||
c := &DefaultObjectAccessControlsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -5883,7 +5940,7 @@ func (c *DefaultObjectAccessControlsGetCall) Header() http.Header {
|
|||
|
||||
func (c *DefaultObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -6002,6 +6059,8 @@ type DefaultObjectAccessControlsInsertCall struct {
|
|||
|
||||
// Insert: Creates a new default object ACL entry on the specified
|
||||
// bucket.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
func (r *DefaultObjectAccessControlsService) Insert(bucket string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsInsertCall {
|
||||
c := &DefaultObjectAccessControlsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -6051,7 +6110,7 @@ func (c *DefaultObjectAccessControlsInsertCall) Header() http.Header {
|
|||
|
||||
func (c *DefaultObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -6166,6 +6225,8 @@ type DefaultObjectAccessControlsListCall struct {
|
|||
}
|
||||
|
||||
// List: Retrieves default object ACL entries on the specified bucket.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
func (r *DefaultObjectAccessControlsService) List(bucket string) *DefaultObjectAccessControlsListCall {
|
||||
c := &DefaultObjectAccessControlsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -6241,7 +6302,7 @@ func (c *DefaultObjectAccessControlsListCall) Header() http.Header {
|
|||
|
||||
func (c *DefaultObjectAccessControlsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -6364,6 +6425,11 @@ type DefaultObjectAccessControlsPatchCall struct {
|
|||
}
|
||||
|
||||
// Patch: Patches a default object ACL entry on the specified bucket.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
// - entity: The entity holding the permission. Can be user-userId,
|
||||
// user-emailAddress, group-groupId, group-emailAddress, allUsers, or
|
||||
// allAuthenticatedUsers.
|
||||
func (r *DefaultObjectAccessControlsService) Patch(bucket string, entity string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsPatchCall {
|
||||
c := &DefaultObjectAccessControlsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -6414,7 +6480,7 @@ func (c *DefaultObjectAccessControlsPatchCall) Header() http.Header {
|
|||
|
||||
func (c *DefaultObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -6538,6 +6604,11 @@ type DefaultObjectAccessControlsUpdateCall struct {
|
|||
}
|
||||
|
||||
// Update: Updates a default object ACL entry on the specified bucket.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
// - entity: The entity holding the permission. Can be user-userId,
|
||||
// user-emailAddress, group-groupId, group-emailAddress, allUsers, or
|
||||
// allAuthenticatedUsers.
|
||||
func (r *DefaultObjectAccessControlsService) Update(bucket string, entity string, objectaccesscontrol *ObjectAccessControl) *DefaultObjectAccessControlsUpdateCall {
|
||||
c := &DefaultObjectAccessControlsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -6588,7 +6659,7 @@ func (c *DefaultObjectAccessControlsUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *DefaultObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -6711,6 +6782,9 @@ type NotificationsDeleteCall struct {
|
|||
}
|
||||
|
||||
// Delete: Permanently deletes a notification subscription.
|
||||
//
|
||||
// - bucket: The parent bucket of the notification.
|
||||
// - notification: ID of the notification to delete.
|
||||
func (r *NotificationsService) Delete(bucket string, notification string) *NotificationsDeleteCall {
|
||||
c := &NotificationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -6760,7 +6834,7 @@ func (c *NotificationsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *NotificationsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -6849,6 +6923,9 @@ type NotificationsGetCall struct {
|
|||
}
|
||||
|
||||
// Get: View a notification configuration.
|
||||
//
|
||||
// - bucket: The parent bucket of the notification.
|
||||
// - notification: Notification ID.
|
||||
func (r *NotificationsService) Get(bucket string, notification string) *NotificationsGetCall {
|
||||
c := &NotificationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -6908,7 +6985,7 @@ func (c *NotificationsGetCall) Header() http.Header {
|
|||
|
||||
func (c *NotificationsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -7029,6 +7106,8 @@ type NotificationsInsertCall struct {
|
|||
}
|
||||
|
||||
// Insert: Creates a notification subscription for a given bucket.
|
||||
//
|
||||
// - bucket: The parent bucket of the notification.
|
||||
func (r *NotificationsService) Insert(bucket string, notification *Notification) *NotificationsInsertCall {
|
||||
c := &NotificationsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -7078,7 +7157,7 @@ func (c *NotificationsInsertCall) Header() http.Header {
|
|||
|
||||
func (c *NotificationsInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -7195,6 +7274,8 @@ type NotificationsListCall struct {
|
|||
|
||||
// List: Retrieves a list of notification subscriptions for a given
|
||||
// bucket.
|
||||
//
|
||||
// - bucket: Name of a Google Cloud Storage bucket.
|
||||
func (r *NotificationsService) List(bucket string) *NotificationsListCall {
|
||||
c := &NotificationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -7253,7 +7334,7 @@ func (c *NotificationsListCall) Header() http.Header {
|
|||
|
||||
func (c *NotificationsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -7368,6 +7449,13 @@ type ObjectAccessControlsDeleteCall struct {
|
|||
|
||||
// Delete: Permanently deletes the ACL entry for the specified entity on
|
||||
// the specified object.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
// - entity: The entity holding the permission. Can be user-userId,
|
||||
// user-emailAddress, group-groupId, group-emailAddress, allUsers, or
|
||||
// allAuthenticatedUsers.
|
||||
// - object: Name of the object. For information about how to URL encode
|
||||
// object names to be path safe, see Encoding URI Path Parts.
|
||||
func (r *ObjectAccessControlsService) Delete(bucket string, object string, entity string) *ObjectAccessControlsDeleteCall {
|
||||
c := &ObjectAccessControlsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -7426,7 +7514,7 @@ func (c *ObjectAccessControlsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectAccessControlsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -7530,6 +7618,13 @@ type ObjectAccessControlsGetCall struct {
|
|||
|
||||
// Get: Returns the ACL entry for the specified entity on the specified
|
||||
// object.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
// - entity: The entity holding the permission. Can be user-userId,
|
||||
// user-emailAddress, group-groupId, group-emailAddress, allUsers, or
|
||||
// allAuthenticatedUsers.
|
||||
// - object: Name of the object. For information about how to URL encode
|
||||
// object names to be path safe, see Encoding URI Path Parts.
|
||||
func (r *ObjectAccessControlsService) Get(bucket string, object string, entity string) *ObjectAccessControlsGetCall {
|
||||
c := &ObjectAccessControlsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -7598,7 +7693,7 @@ func (c *ObjectAccessControlsGetCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectAccessControlsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -7731,6 +7826,10 @@ type ObjectAccessControlsInsertCall struct {
|
|||
}
|
||||
|
||||
// Insert: Creates a new ACL entry on the specified object.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
// - object: Name of the object. For information about how to URL encode
|
||||
// object names to be path safe, see Encoding URI Path Parts.
|
||||
func (r *ObjectAccessControlsService) Insert(bucket string, object string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsInsertCall {
|
||||
c := &ObjectAccessControlsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -7789,7 +7888,7 @@ func (c *ObjectAccessControlsInsertCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectAccessControlsInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -7919,6 +8018,10 @@ type ObjectAccessControlsListCall struct {
|
|||
}
|
||||
|
||||
// List: Retrieves ACL entries on the specified object.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
// - object: Name of the object. For information about how to URL encode
|
||||
// object names to be path safe, see Encoding URI Path Parts.
|
||||
func (r *ObjectAccessControlsService) List(bucket string, object string) *ObjectAccessControlsListCall {
|
||||
c := &ObjectAccessControlsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -7986,7 +8089,7 @@ func (c *ObjectAccessControlsListCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectAccessControlsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -8112,6 +8215,13 @@ type ObjectAccessControlsPatchCall struct {
|
|||
}
|
||||
|
||||
// Patch: Patches an ACL entry on the specified object.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
// - entity: The entity holding the permission. Can be user-userId,
|
||||
// user-emailAddress, group-groupId, group-emailAddress, allUsers, or
|
||||
// allAuthenticatedUsers.
|
||||
// - object: Name of the object. For information about how to URL encode
|
||||
// object names to be path safe, see Encoding URI Path Parts.
|
||||
func (r *ObjectAccessControlsService) Patch(bucket string, object string, entity string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsPatchCall {
|
||||
c := &ObjectAccessControlsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -8171,7 +8281,7 @@ func (c *ObjectAccessControlsPatchCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectAccessControlsPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -8310,6 +8420,13 @@ type ObjectAccessControlsUpdateCall struct {
|
|||
}
|
||||
|
||||
// Update: Updates an ACL entry on the specified object.
|
||||
//
|
||||
// - bucket: Name of a bucket.
|
||||
// - entity: The entity holding the permission. Can be user-userId,
|
||||
// user-emailAddress, group-groupId, group-emailAddress, allUsers, or
|
||||
// allAuthenticatedUsers.
|
||||
// - object: Name of the object. For information about how to URL encode
|
||||
// object names to be path safe, see Encoding URI Path Parts.
|
||||
func (r *ObjectAccessControlsService) Update(bucket string, object string, entity string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsUpdateCall {
|
||||
c := &ObjectAccessControlsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -8369,7 +8486,7 @@ func (c *ObjectAccessControlsUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectAccessControlsUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -8508,6 +8625,12 @@ type ObjectsComposeCall struct {
|
|||
|
||||
// Compose: Concatenates a list of existing objects into a new object in
|
||||
// the same bucket.
|
||||
//
|
||||
// - destinationBucket: Name of the bucket containing the source
|
||||
// objects. The destination object is stored in this bucket.
|
||||
// - destinationObject: Name of the new object. For information about
|
||||
// how to URL encode object names to be path safe, see Encoding URI
|
||||
// Path Parts.
|
||||
func (r *ObjectsService) Compose(destinationBucket string, destinationObject string, composerequest *ComposeRequest) *ObjectsComposeCall {
|
||||
c := &ObjectsComposeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.destinationBucket = destinationBucket
|
||||
|
|
@ -8606,7 +8729,7 @@ func (c *ObjectsComposeCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsComposeCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -8772,6 +8895,19 @@ type ObjectsCopyCall struct {
|
|||
|
||||
// Copy: Copies a source object to a destination object. Optionally
|
||||
// overrides metadata.
|
||||
//
|
||||
// - destinationBucket: Name of the bucket in which to store the new
|
||||
// object. Overrides the provided object metadata's bucket value, if
|
||||
// any.For information about how to URL encode object names to be path
|
||||
// safe, see Encoding URI Path Parts.
|
||||
// - destinationObject: Name of the new object. Required when the object
|
||||
// metadata is not otherwise provided. Overrides the object metadata's
|
||||
// name value, if any.
|
||||
// - sourceBucket: Name of the bucket in which to find the source
|
||||
// object.
|
||||
// - sourceObject: Name of the source object. For information about how
|
||||
// to URL encode object names to be path safe, see Encoding URI Path
|
||||
// Parts.
|
||||
func (r *ObjectsService) Copy(sourceBucket string, sourceObject string, destinationBucket string, destinationObject string, object *Object) *ObjectsCopyCall {
|
||||
c := &ObjectsCopyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.sourceBucket = sourceBucket
|
||||
|
|
@ -8949,7 +9085,7 @@ func (c *ObjectsCopyCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsCopyCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -9184,6 +9320,10 @@ type ObjectsDeleteCall struct {
|
|||
// Delete: Deletes an object and its metadata. Deletions are permanent
|
||||
// if versioning is not enabled for the bucket, or if the generation
|
||||
// parameter is used.
|
||||
//
|
||||
// - bucket: Name of the bucket in which the object resides.
|
||||
// - object: Name of the object. For information about how to URL encode
|
||||
// object names to be path safe, see Encoding URI Path Parts.
|
||||
func (r *ObjectsService) Delete(bucket string, object string) *ObjectsDeleteCall {
|
||||
c := &ObjectsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -9277,7 +9417,7 @@ func (c *ObjectsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -9396,6 +9536,10 @@ type ObjectsGetCall struct {
|
|||
}
|
||||
|
||||
// Get: Retrieves an object or its metadata.
|
||||
//
|
||||
// - bucket: Name of the bucket in which the object resides.
|
||||
// - object: Name of the object. For information about how to URL encode
|
||||
// object names to be path safe, see Encoding URI Path Parts.
|
||||
func (r *ObjectsService) Get(bucket string, object string) *ObjectsGetCall {
|
||||
c := &ObjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -9510,7 +9654,7 @@ func (c *ObjectsGetCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -9693,6 +9837,10 @@ type ObjectsGetIamPolicyCall struct {
|
|||
}
|
||||
|
||||
// GetIamPolicy: Returns an IAM policy for the specified object.
|
||||
//
|
||||
// - bucket: Name of the bucket in which the object resides.
|
||||
// - object: Name of the object. For information about how to URL encode
|
||||
// object names to be path safe, see Encoding URI Path Parts.
|
||||
func (r *ObjectsService) GetIamPolicy(bucket string, object string) *ObjectsGetIamPolicyCall {
|
||||
c := &ObjectsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -9760,7 +9908,7 @@ func (c *ObjectsGetIamPolicyCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -9888,6 +10036,9 @@ type ObjectsInsertCall struct {
|
|||
}
|
||||
|
||||
// Insert: Stores a new object and metadata.
|
||||
//
|
||||
// - bucket: Name of the bucket in which to store the new object.
|
||||
// Overrides the provided object metadata's bucket value, if any.
|
||||
func (r *ObjectsService) Insert(bucket string, object *Object) *ObjectsInsertCall {
|
||||
c := &ObjectsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -10077,7 +10228,7 @@ func (c *ObjectsInsertCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsInsertCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -10310,6 +10461,8 @@ type ObjectsListCall struct {
|
|||
}
|
||||
|
||||
// List: Retrieves a list of objects matching the criteria.
|
||||
//
|
||||
// - bucket: Name of the bucket in which to look for objects.
|
||||
func (r *ObjectsService) List(bucket string) *ObjectsListCall {
|
||||
c := &ObjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -10450,7 +10603,7 @@ func (c *ObjectsListCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -10642,6 +10795,10 @@ type ObjectsPatchCall struct {
|
|||
}
|
||||
|
||||
// Patch: Patches an object's metadata.
|
||||
//
|
||||
// - bucket: Name of the bucket in which the object resides.
|
||||
// - object: Name of the object. For information about how to URL encode
|
||||
// object names to be path safe, see Encoding URI Path Parts.
|
||||
func (r *ObjectsService) Patch(bucket string, object string, object2 *Object) *ObjectsPatchCall {
|
||||
c := &ObjectsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -10767,7 +10924,7 @@ func (c *ObjectsPatchCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsPatchCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -10958,6 +11115,19 @@ type ObjectsRewriteCall struct {
|
|||
|
||||
// Rewrite: Rewrites a source object to a destination object. Optionally
|
||||
// overrides metadata.
|
||||
//
|
||||
// - destinationBucket: Name of the bucket in which to store the new
|
||||
// object. Overrides the provided object metadata's bucket value, if
|
||||
// any.
|
||||
// - destinationObject: Name of the new object. Required when the object
|
||||
// metadata is not otherwise provided. Overrides the object metadata's
|
||||
// name value, if any. For information about how to URL encode object
|
||||
// names to be path safe, see Encoding URI Path Parts.
|
||||
// - sourceBucket: Name of the bucket in which to find the source
|
||||
// object.
|
||||
// - sourceObject: Name of the source object. For information about how
|
||||
// to URL encode object names to be path safe, see Encoding URI Path
|
||||
// Parts.
|
||||
func (r *ObjectsService) Rewrite(sourceBucket string, sourceObject string, destinationBucket string, destinationObject string, object *Object) *ObjectsRewriteCall {
|
||||
c := &ObjectsRewriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.sourceBucket = sourceBucket
|
||||
|
|
@ -11159,7 +11329,7 @@ func (c *ObjectsRewriteCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsRewriteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -11404,6 +11574,10 @@ type ObjectsSetIamPolicyCall struct {
|
|||
}
|
||||
|
||||
// SetIamPolicy: Updates an IAM policy for the specified object.
|
||||
//
|
||||
// - bucket: Name of the bucket in which the object resides.
|
||||
// - object: Name of the object. For information about how to URL encode
|
||||
// object names to be path safe, see Encoding URI Path Parts.
|
||||
func (r *ObjectsService) SetIamPolicy(bucket string, object string, policy *Policy) *ObjectsSetIamPolicyCall {
|
||||
c := &ObjectsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -11462,7 +11636,7 @@ func (c *ObjectsSetIamPolicyCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -11594,6 +11768,11 @@ type ObjectsTestIamPermissionsCall struct {
|
|||
|
||||
// TestIamPermissions: Tests a set of permissions on the given object to
|
||||
// see which, if any, are held by the caller.
|
||||
//
|
||||
// - bucket: Name of the bucket in which the object resides.
|
||||
// - object: Name of the object. For information about how to URL encode
|
||||
// object names to be path safe, see Encoding URI Path Parts.
|
||||
// - permissions: Permissions to test.
|
||||
func (r *ObjectsService) TestIamPermissions(bucket string, object string, permissions []string) *ObjectsTestIamPermissionsCall {
|
||||
c := &ObjectsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -11662,7 +11841,7 @@ func (c *ObjectsTestIamPermissionsCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -11798,6 +11977,10 @@ type ObjectsUpdateCall struct {
|
|||
}
|
||||
|
||||
// Update: Updates an object's metadata.
|
||||
//
|
||||
// - bucket: Name of the bucket in which the object resides.
|
||||
// - object: Name of the object. For information about how to URL encode
|
||||
// object names to be path safe, see Encoding URI Path Parts.
|
||||
func (r *ObjectsService) Update(bucket string, object string, object2 *Object) *ObjectsUpdateCall {
|
||||
c := &ObjectsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -11923,7 +12106,7 @@ func (c *ObjectsUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -12110,6 +12293,8 @@ type ObjectsWatchAllCall struct {
|
|||
}
|
||||
|
||||
// WatchAll: Watch for changes on all objects in a bucket.
|
||||
//
|
||||
// - bucket: Name of the bucket in which to look for objects.
|
||||
func (r *ObjectsService) WatchAll(bucket string, channel *Channel) *ObjectsWatchAllCall {
|
||||
c := &ObjectsWatchAllCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.bucket = bucket
|
||||
|
|
@ -12241,7 +12426,7 @@ func (c *ObjectsWatchAllCall) Header() http.Header {
|
|||
|
||||
func (c *ObjectsWatchAllCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -12416,6 +12601,9 @@ type ProjectsHmacKeysCreateCall struct {
|
|||
}
|
||||
|
||||
// Create: Creates a new HMAC key for the specified service account.
|
||||
//
|
||||
// - projectId: Project ID owning the service account.
|
||||
// - serviceAccountEmail: Email address of the service account.
|
||||
func (r *ProjectsHmacKeysService) Create(projectId string, serviceAccountEmail string) *ProjectsHmacKeysCreateCall {
|
||||
c := &ProjectsHmacKeysCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.projectId = projectId
|
||||
|
|
@ -12457,7 +12645,7 @@ func (c *ProjectsHmacKeysCreateCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsHmacKeysCreateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -12566,6 +12754,9 @@ type ProjectsHmacKeysDeleteCall struct {
|
|||
}
|
||||
|
||||
// Delete: Deletes an HMAC key.
|
||||
//
|
||||
// - accessId: Name of the HMAC key to be deleted.
|
||||
// - projectId: Project ID owning the requested key.
|
||||
func (r *ProjectsHmacKeysService) Delete(projectId string, accessId string) *ProjectsHmacKeysDeleteCall {
|
||||
c := &ProjectsHmacKeysDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.projectId = projectId
|
||||
|
|
@ -12607,7 +12798,7 @@ func (c *ProjectsHmacKeysDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsHmacKeysDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -12691,6 +12882,10 @@ type ProjectsHmacKeysGetCall struct {
|
|||
}
|
||||
|
||||
// Get: Retrieves an HMAC key's metadata
|
||||
//
|
||||
// - accessId: Name of the HMAC key.
|
||||
// - projectId: Project ID owning the service account of the requested
|
||||
// key.
|
||||
func (r *ProjectsHmacKeysService) Get(projectId string, accessId string) *ProjectsHmacKeysGetCall {
|
||||
c := &ProjectsHmacKeysGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.projectId = projectId
|
||||
|
|
@ -12742,7 +12937,7 @@ func (c *ProjectsHmacKeysGetCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsHmacKeysGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -12857,6 +13052,8 @@ type ProjectsHmacKeysListCall struct {
|
|||
}
|
||||
|
||||
// List: Retrieves a list of HMAC keys matching the criteria.
|
||||
//
|
||||
// - projectId: Name of the project in which to look for HMAC keys.
|
||||
func (r *ProjectsHmacKeysService) List(projectId string) *ProjectsHmacKeysListCall {
|
||||
c := &ProjectsHmacKeysListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.projectId = projectId
|
||||
|
|
@ -12942,7 +13139,7 @@ func (c *ProjectsHmacKeysListCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsHmacKeysListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -13095,6 +13292,10 @@ type ProjectsHmacKeysUpdateCall struct {
|
|||
|
||||
// Update: Updates the state of an HMAC key. See the HMAC Key resource
|
||||
// descriptor for valid states.
|
||||
//
|
||||
// - accessId: Name of the HMAC key being updated.
|
||||
// - projectId: Project ID owning the service account of the updated
|
||||
// key.
|
||||
func (r *ProjectsHmacKeysService) Update(projectId string, accessId string, hmackeymetadata *HmacKeyMetadata) *ProjectsHmacKeysUpdateCall {
|
||||
c := &ProjectsHmacKeysUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.projectId = projectId
|
||||
|
|
@ -13137,7 +13338,7 @@ func (c *ProjectsHmacKeysUpdateCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsHmacKeysUpdateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -13256,6 +13457,8 @@ type ProjectsServiceAccountGetCall struct {
|
|||
|
||||
// Get: Get the email address of this project's Google Cloud Storage
|
||||
// service account.
|
||||
//
|
||||
// - projectId: Project ID.
|
||||
func (r *ProjectsServiceAccountService) Get(projectId string) *ProjectsServiceAccountGetCall {
|
||||
c := &ProjectsServiceAccountGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.projectId = projectId
|
||||
|
|
@ -13314,7 +13517,7 @@ func (c *ProjectsServiceAccountGetCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsServiceAccountGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"oauth2": {
|
||||
"scopes": {
|
||||
"https://www.googleapis.com/auth/cloud-platform": {
|
||||
"description": "View and manage your data across Google Cloud Platform services"
|
||||
"description": "See, edit, configure, and delete your Google Cloud Platform data"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -144,7 +144,7 @@
|
|||
],
|
||||
"parameters": {
|
||||
"filter": {
|
||||
"description": "The standard list filter.",
|
||||
"description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
|
|
@ -156,13 +156,13 @@
|
|||
"type": "string"
|
||||
},
|
||||
"pageSize": {
|
||||
"description": "The standard list page size.",
|
||||
"description": "The maximum number of results to return. If not set, the service will select a default.",
|
||||
"format": "int32",
|
||||
"location": "query",
|
||||
"type": "integer"
|
||||
},
|
||||
"pageToken": {
|
||||
"description": "The standard list page token.",
|
||||
"description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
}
|
||||
|
|
@ -659,7 +659,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"revision": "20201014",
|
||||
"revision": "20210401",
|
||||
"rootUrl": "https://tpu.googleapis.com/",
|
||||
"schemas": {
|
||||
"AcceleratorType": {
|
||||
|
|
@ -852,6 +852,23 @@
|
|||
"description": "Required. The type of hardware accelerators associated with this node.",
|
||||
"type": "string"
|
||||
},
|
||||
"apiVersion": {
|
||||
"description": "Output only. The API version that created this Node.",
|
||||
"enum": [
|
||||
"API_VERSION_UNSPECIFIED",
|
||||
"V1_ALPHA1",
|
||||
"V1",
|
||||
"V2_ALPHA1"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"API version is unknown.",
|
||||
"TPU API V1Alpha1 version.",
|
||||
"TPU API V1 version.",
|
||||
"TPU API V2Alpha1 version."
|
||||
],
|
||||
"readOnly": true,
|
||||
"type": "string"
|
||||
},
|
||||
"cidrBlock": {
|
||||
"description": "The CIDR block that the TPU node will use when selecting an IP address. This CIDR block must be a /29 block; the Compute Engine networks API forbids a smaller block, and using a larger block would be wasteful (a node can only consume one IP address). Errors will occur if the CIDR block has already been used for a currently existing TPU node, the CIDR block conflicts with any subnetworks in the user's provided network, or the provided network is peered with another network that is using that CIDR block.",
|
||||
"type": "string"
|
||||
|
|
@ -1148,7 +1165,8 @@
|
|||
"OUT_OF_MEMORY",
|
||||
"EXECUTE_TIMED_OUT",
|
||||
"MESH_BUILD_FAIL",
|
||||
"HBM_OUT_OF_MEMORY"
|
||||
"HBM_OUT_OF_MEMORY",
|
||||
"PROJECT_ABUSE"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Unspecified symptom.",
|
||||
|
|
@ -1156,7 +1174,8 @@
|
|||
"TPU runtime is out of memory.",
|
||||
"TPU runtime execution has timed out.",
|
||||
"TPU runtime fails to construct a mesh that recognizes each TPU device's neighbors.",
|
||||
"TPU HBM is out of memory."
|
||||
"TPU HBM is out of memory.",
|
||||
"Abusive behaviors have been identified on the current project."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ const mtlsBasePath = "https://tpu.mtls.googleapis.com/"
|
|||
|
||||
// OAuth2 scopes used by this API.
|
||||
const (
|
||||
// View and manage your data across Google Cloud Platform services
|
||||
// See, edit, configure, and delete your Google Cloud Platform data
|
||||
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
|
||||
)
|
||||
|
||||
|
|
@ -529,6 +529,15 @@ type Node struct {
|
|||
// associated with this node.
|
||||
AcceleratorType string `json:"acceleratorType,omitempty"`
|
||||
|
||||
// ApiVersion: Output only. The API version that created this Node.
|
||||
//
|
||||
// Possible values:
|
||||
// "API_VERSION_UNSPECIFIED" - API version is unknown.
|
||||
// "V1_ALPHA1" - TPU API V1Alpha1 version.
|
||||
// "V1" - TPU API V1 version.
|
||||
// "V2_ALPHA1" - TPU API V2Alpha1 version.
|
||||
ApiVersion string `json:"apiVersion,omitempty"`
|
||||
|
||||
// CidrBlock: The CIDR block that the TPU node will use when selecting
|
||||
// an IP address. This CIDR block must be a /29 block; the Compute
|
||||
// Engine networks API forbids a smaller block, and using a larger block
|
||||
|
|
@ -910,6 +919,8 @@ type Symptom struct {
|
|||
// "MESH_BUILD_FAIL" - TPU runtime fails to construct a mesh that
|
||||
// recognizes each TPU device's neighbors.
|
||||
// "HBM_OUT_OF_MEMORY" - TPU HBM is out of memory.
|
||||
// "PROJECT_ABUSE" - Abusive behaviors have been identified on the
|
||||
// current project.
|
||||
SymptomType string `json:"symptomType,omitempty"`
|
||||
|
||||
// WorkerId: A string used to uniquely distinguish a worker within a TPU
|
||||
|
|
@ -987,6 +998,8 @@ type ProjectsLocationsGetCall struct {
|
|||
}
|
||||
|
||||
// Get: Gets information about a location.
|
||||
//
|
||||
// - name: Resource name for the location.
|
||||
func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
|
||||
c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
|
|
@ -1030,7 +1043,7 @@ func (c *ProjectsLocationsGetCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -1132,28 +1145,34 @@ type ProjectsLocationsListCall struct {
|
|||
|
||||
// List: Lists information about the supported locations for this
|
||||
// service.
|
||||
//
|
||||
// - name: The resource that owns the locations collection, if
|
||||
// applicable.
|
||||
func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
|
||||
c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
return c
|
||||
}
|
||||
|
||||
// Filter sets the optional parameter "filter": The standard list
|
||||
// filter.
|
||||
// Filter sets the optional parameter "filter": A filter to narrow down
|
||||
// results to a preferred subset. The filtering language accepts strings
|
||||
// like "displayName=tokyo", and is documented in more detail in AIP-160
|
||||
// (https://google.aip.dev/160).
|
||||
func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
|
||||
c.urlParams_.Set("filter", filter)
|
||||
return c
|
||||
}
|
||||
|
||||
// PageSize sets the optional parameter "pageSize": The standard list
|
||||
// page size.
|
||||
// PageSize sets the optional parameter "pageSize": The maximum number
|
||||
// of results to return. If not set, the service will select a default.
|
||||
func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
|
||||
c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
|
||||
return c
|
||||
}
|
||||
|
||||
// PageToken sets the optional parameter "pageToken": The standard list
|
||||
// page token.
|
||||
// PageToken sets the optional parameter "pageToken": A page token
|
||||
// received from the `next_page_token` field in the response. Send that
|
||||
// page token to receive the subsequent page.
|
||||
func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
|
||||
c.urlParams_.Set("pageToken", pageToken)
|
||||
return c
|
||||
|
|
@ -1196,7 +1215,7 @@ func (c *ProjectsLocationsListCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -1267,7 +1286,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat
|
|||
// ],
|
||||
// "parameters": {
|
||||
// "filter": {
|
||||
// "description": "The standard list filter.",
|
||||
// "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like \"displayName=tokyo\", and is documented in more detail in [AIP-160](https://google.aip.dev/160).",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
|
|
@ -1279,13 +1298,13 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat
|
|||
// "type": "string"
|
||||
// },
|
||||
// "pageSize": {
|
||||
// "description": "The standard list page size.",
|
||||
// "description": "The maximum number of results to return. If not set, the service will select a default.",
|
||||
// "format": "int32",
|
||||
// "location": "query",
|
||||
// "type": "integer"
|
||||
// },
|
||||
// "pageToken": {
|
||||
// "description": "The standard list page token.",
|
||||
// "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// }
|
||||
|
|
@ -1334,6 +1353,8 @@ type ProjectsLocationsAcceleratorTypesGetCall struct {
|
|||
}
|
||||
|
||||
// Get: Gets AcceleratorType.
|
||||
//
|
||||
// - name: The resource name.
|
||||
func (r *ProjectsLocationsAcceleratorTypesService) Get(name string) *ProjectsLocationsAcceleratorTypesGetCall {
|
||||
c := &ProjectsLocationsAcceleratorTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
|
|
@ -1377,7 +1398,7 @@ func (c *ProjectsLocationsAcceleratorTypesGetCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsLocationsAcceleratorTypesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -1478,6 +1499,8 @@ type ProjectsLocationsAcceleratorTypesListCall struct {
|
|||
}
|
||||
|
||||
// List: Lists accelerator types supported by this API.
|
||||
//
|
||||
// - parent: The parent resource name.
|
||||
func (r *ProjectsLocationsAcceleratorTypesService) List(parent string) *ProjectsLocationsAcceleratorTypesListCall {
|
||||
c := &ProjectsLocationsAcceleratorTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.parent = parent
|
||||
|
|
@ -1547,7 +1570,7 @@ func (c *ProjectsLocationsAcceleratorTypesListCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsLocationsAcceleratorTypesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -1690,6 +1713,8 @@ type ProjectsLocationsNodesCreateCall struct {
|
|||
}
|
||||
|
||||
// Create: Creates a node.
|
||||
//
|
||||
// - parent: The parent resource name.
|
||||
func (r *ProjectsLocationsNodesService) Create(parent string, node *Node) *ProjectsLocationsNodesCreateCall {
|
||||
c := &ProjectsLocationsNodesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.parent = parent
|
||||
|
|
@ -1731,7 +1756,7 @@ func (c *ProjectsLocationsNodesCreateCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsLocationsNodesCreateCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -1841,6 +1866,8 @@ type ProjectsLocationsNodesDeleteCall struct {
|
|||
}
|
||||
|
||||
// Delete: Deletes a node.
|
||||
//
|
||||
// - name: The resource name.
|
||||
func (r *ProjectsLocationsNodesService) Delete(name string) *ProjectsLocationsNodesDeleteCall {
|
||||
c := &ProjectsLocationsNodesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
|
|
@ -1874,7 +1901,7 @@ func (c *ProjectsLocationsNodesDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsLocationsNodesDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -1972,6 +1999,8 @@ type ProjectsLocationsNodesGetCall struct {
|
|||
}
|
||||
|
||||
// Get: Gets the details of a node.
|
||||
//
|
||||
// - name: The resource name.
|
||||
func (r *ProjectsLocationsNodesService) Get(name string) *ProjectsLocationsNodesGetCall {
|
||||
c := &ProjectsLocationsNodesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
|
|
@ -2015,7 +2044,7 @@ func (c *ProjectsLocationsNodesGetCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsLocationsNodesGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -2116,6 +2145,8 @@ type ProjectsLocationsNodesListCall struct {
|
|||
}
|
||||
|
||||
// List: Lists nodes.
|
||||
//
|
||||
// - parent: The parent resource name.
|
||||
func (r *ProjectsLocationsNodesService) List(parent string) *ProjectsLocationsNodesListCall {
|
||||
c := &ProjectsLocationsNodesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.parent = parent
|
||||
|
|
@ -2173,7 +2204,7 @@ func (c *ProjectsLocationsNodesListCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsLocationsNodesListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -2306,6 +2337,8 @@ type ProjectsLocationsNodesReimageCall struct {
|
|||
}
|
||||
|
||||
// Reimage: Reimages a node's OS.
|
||||
//
|
||||
// - name: The resource name.
|
||||
func (r *ProjectsLocationsNodesService) Reimage(name string, reimagenoderequest *ReimageNodeRequest) *ProjectsLocationsNodesReimageCall {
|
||||
c := &ProjectsLocationsNodesReimageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
|
|
@ -2340,7 +2373,7 @@ func (c *ProjectsLocationsNodesReimageCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsLocationsNodesReimageCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -2446,6 +2479,8 @@ type ProjectsLocationsNodesStartCall struct {
|
|||
}
|
||||
|
||||
// Start: Starts a node.
|
||||
//
|
||||
// - name: The resource name.
|
||||
func (r *ProjectsLocationsNodesService) Start(name string, startnoderequest *StartNodeRequest) *ProjectsLocationsNodesStartCall {
|
||||
c := &ProjectsLocationsNodesStartCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
|
|
@ -2480,7 +2515,7 @@ func (c *ProjectsLocationsNodesStartCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsLocationsNodesStartCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -2586,6 +2621,8 @@ type ProjectsLocationsNodesStopCall struct {
|
|||
}
|
||||
|
||||
// Stop: Stops a node.
|
||||
//
|
||||
// - name: The resource name.
|
||||
func (r *ProjectsLocationsNodesService) Stop(name string, stopnoderequest *StopNodeRequest) *ProjectsLocationsNodesStopCall {
|
||||
c := &ProjectsLocationsNodesStopCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
|
|
@ -2620,7 +2657,7 @@ func (c *ProjectsLocationsNodesStopCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsLocationsNodesStopCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -2734,6 +2771,8 @@ type ProjectsLocationsOperationsCancelCall struct {
|
|||
// deleted; instead, it becomes an operation with an Operation.error
|
||||
// value with a google.rpc.Status.code of 1, corresponding to
|
||||
// `Code.CANCELLED`.
|
||||
//
|
||||
// - name: The name of the operation resource to be cancelled.
|
||||
func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
|
||||
c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
|
|
@ -2767,7 +2806,7 @@ func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -2867,6 +2906,8 @@ type ProjectsLocationsOperationsDeleteCall struct {
|
|||
// the client is no longer interested in the operation result. It does
|
||||
// not cancel the operation. If the server doesn't support this method,
|
||||
// it returns `google.rpc.Code.UNIMPLEMENTED`.
|
||||
//
|
||||
// - name: The name of the operation resource to be deleted.
|
||||
func (r *ProjectsLocationsOperationsService) Delete(name string) *ProjectsLocationsOperationsDeleteCall {
|
||||
c := &ProjectsLocationsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
|
|
@ -2900,7 +2941,7 @@ func (c *ProjectsLocationsOperationsDeleteCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsLocationsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -3000,6 +3041,8 @@ type ProjectsLocationsOperationsGetCall struct {
|
|||
// Get: Gets the latest state of a long-running operation. Clients can
|
||||
// use this method to poll the operation result at intervals as
|
||||
// recommended by the API service.
|
||||
//
|
||||
// - name: The name of the operation resource.
|
||||
func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
|
||||
c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
|
|
@ -3043,7 +3086,7 @@ func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -3153,6 +3196,8 @@ type ProjectsLocationsOperationsListCall struct {
|
|||
// the operations collection id, however overriding users must ensure
|
||||
// the name binding is the parent resource, without the operations
|
||||
// collection id.
|
||||
//
|
||||
// - name: The name of the operation's parent resource.
|
||||
func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
|
||||
c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
|
|
@ -3217,7 +3262,7 @@ func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -3355,6 +3400,8 @@ type ProjectsLocationsTensorflowVersionsGetCall struct {
|
|||
}
|
||||
|
||||
// Get: Gets TensorFlow Version.
|
||||
//
|
||||
// - name: The resource name.
|
||||
func (r *ProjectsLocationsTensorflowVersionsService) Get(name string) *ProjectsLocationsTensorflowVersionsGetCall {
|
||||
c := &ProjectsLocationsTensorflowVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
|
|
@ -3398,7 +3445,7 @@ func (c *ProjectsLocationsTensorflowVersionsGetCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsLocationsTensorflowVersionsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
@ -3499,6 +3546,8 @@ type ProjectsLocationsTensorflowVersionsListCall struct {
|
|||
}
|
||||
|
||||
// List: List TensorFlow versions supported by this API.
|
||||
//
|
||||
// - parent: The parent resource name.
|
||||
func (r *ProjectsLocationsTensorflowVersionsService) List(parent string) *ProjectsLocationsTensorflowVersionsListCall {
|
||||
c := &ProjectsLocationsTensorflowVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.parent = parent
|
||||
|
|
@ -3568,7 +3617,7 @@ func (c *ProjectsLocationsTensorflowVersionsListCall) Header() http.Header {
|
|||
|
||||
func (c *ProjectsLocationsTensorflowVersionsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210322")
|
||||
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/20210406")
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ cloud.google.com/go/compute/metadata
|
|||
# github.com/Azure/azure-pipeline-go v0.2.3
|
||||
## explicit
|
||||
github.com/Azure/azure-pipeline-go/pipeline
|
||||
# github.com/Azure/azure-sdk-for-go v53.0.0+incompatible
|
||||
# github.com/Azure/azure-sdk-for-go v53.1.0+incompatible
|
||||
## explicit
|
||||
github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2020-06-01/compute
|
||||
github.com/Azure/azure-sdk-for-go/services/network/mgmt/2020-06-01/network
|
||||
|
|
@ -87,7 +87,7 @@ github.com/PuerkitoBio/purell
|
|||
github.com/PuerkitoBio/urlesc
|
||||
# github.com/agext/levenshtein v1.2.1
|
||||
github.com/agext/levenshtein
|
||||
# github.com/aliyun/alibaba-cloud-sdk-go v1.61.1016
|
||||
# github.com/aliyun/alibaba-cloud-sdk-go v1.61.1022
|
||||
## explicit
|
||||
github.com/aliyun/alibaba-cloud-sdk-go/sdk
|
||||
github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth
|
||||
|
|
@ -110,7 +110,7 @@ github.com/aws/amazon-ec2-instance-selector/v2/pkg/bytequantity
|
|||
github.com/aws/amazon-ec2-instance-selector/v2/pkg/cli
|
||||
github.com/aws/amazon-ec2-instance-selector/v2/pkg/selector
|
||||
github.com/aws/amazon-ec2-instance-selector/v2/pkg/selector/outputs
|
||||
# github.com/aws/aws-sdk-go v1.38.12
|
||||
# github.com/aws/aws-sdk-go v1.38.17
|
||||
## explicit
|
||||
github.com/aws/aws-sdk-go/aws
|
||||
github.com/aws/aws-sdk-go/aws/arn
|
||||
|
|
@ -363,7 +363,7 @@ github.com/googleapis/gnostic/compiler
|
|||
github.com/googleapis/gnostic/extensions
|
||||
github.com/googleapis/gnostic/jsonschema
|
||||
github.com/googleapis/gnostic/openapiv2
|
||||
# github.com/gophercloud/gophercloud v0.16.0
|
||||
# github.com/gophercloud/gophercloud v0.17.0
|
||||
## explicit
|
||||
github.com/gophercloud/gophercloud
|
||||
github.com/gophercloud/gophercloud/openstack
|
||||
|
|
@ -474,7 +474,7 @@ github.com/inconshreveable/mousetrap
|
|||
## explicit
|
||||
github.com/jacksontj/memberlistmesh
|
||||
github.com/jacksontj/memberlistmesh/clusterpb
|
||||
# github.com/jetstack/cert-manager v1.2.0
|
||||
# github.com/jetstack/cert-manager v1.3.0
|
||||
## explicit
|
||||
github.com/jetstack/cert-manager/pkg/apis/acme
|
||||
github.com/jetstack/cert-manager/pkg/apis/acme/v1
|
||||
|
|
@ -565,7 +565,7 @@ github.com/opencontainers/go-digest
|
|||
# github.com/opencontainers/image-spec v1.0.1
|
||||
github.com/opencontainers/image-spec/specs-go
|
||||
github.com/opencontainers/image-spec/specs-go/v1
|
||||
# github.com/pelletier/go-toml v1.8.1
|
||||
# github.com/pelletier/go-toml v1.9.0
|
||||
## explicit
|
||||
github.com/pelletier/go-toml
|
||||
# github.com/peterbourgon/diskv v2.0.1+incompatible
|
||||
|
|
@ -723,7 +723,7 @@ golang.org/x/crypto/ssh/internal/bcrypt_pbkdf
|
|||
## explicit
|
||||
golang.org/x/mod/module
|
||||
golang.org/x/mod/semver
|
||||
# golang.org/x/net v0.0.0-20210331212208-0fccb6fa2b5c
|
||||
# golang.org/x/net v0.0.0-20210410081132-afb366fc7cd1
|
||||
## explicit
|
||||
golang.org/x/net/bpf
|
||||
golang.org/x/net/context
|
||||
|
|
@ -763,7 +763,7 @@ golang.org/x/sys/windows
|
|||
golang.org/x/sys/windows/registry
|
||||
# golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d
|
||||
golang.org/x/term
|
||||
# golang.org/x/text v0.3.5
|
||||
# golang.org/x/text v0.3.6
|
||||
golang.org/x/text/encoding
|
||||
golang.org/x/text/encoding/internal
|
||||
golang.org/x/text/encoding/internal/identifier
|
||||
|
|
@ -793,7 +793,7 @@ golang.org/x/xerrors
|
|||
golang.org/x/xerrors/internal
|
||||
# gomodules.xyz/jsonpatch/v2 v2.1.0
|
||||
gomodules.xyz/jsonpatch/v2
|
||||
# google.golang.org/api v0.43.0
|
||||
# google.golang.org/api v0.44.0
|
||||
## explicit
|
||||
google.golang.org/api/compute/v0.alpha
|
||||
google.golang.org/api/compute/v0.beta
|
||||
|
|
@ -1351,7 +1351,7 @@ k8s.io/cloud-provider/service/helpers
|
|||
k8s.io/cloud-provider/volume
|
||||
k8s.io/cloud-provider/volume/errors
|
||||
k8s.io/cloud-provider/volume/helpers
|
||||
# k8s.io/cloud-provider-openstack v1.20.2
|
||||
# k8s.io/cloud-provider-openstack v1.20.3
|
||||
## explicit
|
||||
k8s.io/cloud-provider-openstack/pkg/cloudprovider/providers/openstack/metrics
|
||||
k8s.io/cloud-provider-openstack/pkg/util/errors
|
||||
|
|
|
|||
Loading…
Reference in New Issue