Merge pull request #15685 from kubernetes/dependencies/update-1689919834

Update dependencies
This commit is contained in:
Kubernetes Prow Robot 2023-07-21 04:16:07 -07:00 committed by GitHub
commit 7d4a6e14ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 2180 additions and 738 deletions

26
go.mod
View File

@ -14,10 +14,10 @@ require (
github.com/Masterminds/sprig/v3 v3.2.3
github.com/apparentlymart/go-cidr v1.1.0
github.com/aws/amazon-ec2-instance-selector/v2 v2.4.1
github.com/aws/aws-sdk-go v1.44.301
github.com/aws/aws-sdk-go v1.44.305
github.com/blang/semver/v4 v4.0.0
github.com/cert-manager/cert-manager v1.12.2
github.com/digitalocean/godo v1.99.0
github.com/digitalocean/godo v1.100.0
github.com/go-ini/ini v1.67.0
github.com/go-logr/logr v1.2.4
github.com/gogo/protobuf v1.3.2
@ -48,25 +48,25 @@ require (
golang.org/x/oauth2 v0.10.0
golang.org/x/sync v0.3.0
golang.org/x/sys v0.10.0
google.golang.org/api v0.131.0
google.golang.org/api v0.132.0
google.golang.org/grpc v1.56.2
google.golang.org/protobuf v1.31.0
gopkg.in/gcfg.v1 v1.2.3
gopkg.in/inf.v0 v0.9.1
gopkg.in/square/go-jose.v2 v2.6.0
helm.sh/helm/v3 v3.12.2
k8s.io/api v0.27.3
k8s.io/apimachinery v0.27.3
k8s.io/cli-runtime v0.27.3
k8s.io/client-go v0.27.3
k8s.io/api v0.27.4
k8s.io/apimachinery v0.27.4
k8s.io/cli-runtime v0.27.4
k8s.io/client-go v0.27.4
k8s.io/cloud-provider-aws v1.27.2
k8s.io/cloud-provider-gcp/providers v0.26.2
k8s.io/component-base v0.27.3
k8s.io/component-base v0.27.4
k8s.io/gengo v0.0.0-20230306165830-ab3349d207d4
k8s.io/klog/v2 v2.100.1
k8s.io/kubectl v0.27.3
k8s.io/kubelet v0.27.3
k8s.io/mount-utils v0.27.3
k8s.io/kubectl v0.27.4
k8s.io/kubelet v0.27.4
k8s.io/mount-utils v0.27.4
k8s.io/utils v0.0.0-20230711102312-30195339c3c7
sigs.k8s.io/controller-runtime v0.15.0
sigs.k8s.io/structured-merge-diff/v4 v4.3.0
@ -214,14 +214,14 @@ require (
golang.org/x/tools v0.9.1 // indirect
gomodules.xyz/jsonpatch/v2 v2.3.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/apiextensions-apiserver v0.27.2 // indirect
k8s.io/cloud-provider v0.27.0 // indirect
k8s.io/component-helpers v0.27.3 // indirect
k8s.io/component-helpers v0.27.4 // indirect
k8s.io/csi-translation-lib v0.27.0 // indirect
k8s.io/klog v1.0.0 // indirect
k8s.io/kube-openapi v0.0.0-20230515203736-54b630e78af5 // indirect

58
go.sum
View File

@ -123,8 +123,8 @@ github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z
github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
github.com/aws/amazon-ec2-instance-selector/v2 v2.4.1 h1:DmxtwV+pkakkVRhxKcAgnLbxCxvT7k8DBG271dfKPZ8=
github.com/aws/amazon-ec2-instance-selector/v2 v2.4.1/go.mod h1:AEJrtkLkCkfIBIazidrVrgZqaXl+9dxI/wRgjdw+7G0=
github.com/aws/aws-sdk-go v1.44.301 h1:VofuXktwHFTBUvoPiHxQis/3uKgu0RtgUwLtNujd3Zs=
github.com/aws/aws-sdk-go v1.44.301/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go v1.44.305 h1:fU/5lY3WyBjGU9fkmQYd8o4fZu+2RaOv/i+sPaJVvFg=
github.com/aws/aws-sdk-go v1.44.305/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
@ -184,8 +184,8 @@ github.com/cyphar/filepath-securejoin v0.2.3/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxG
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
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=
github.com/digitalocean/godo v1.99.0 h1:gUHO7n9bDaZFWvbzOum4bXE0/09ZuYA9yA8idQHX57E=
github.com/digitalocean/godo v1.99.0/go.mod h1:SsS2oXo2rznfM/nORlZ/6JaUJZFhmKTib1YhopUc8NA=
github.com/digitalocean/godo v1.100.0 h1:3MuDCh9Hw0MCBwV8GbHBiGrKZXCZ+VJfAY8iNCW+Mks=
github.com/digitalocean/godo v1.100.0/go.mod h1:SsS2oXo2rznfM/nORlZ/6JaUJZFhmKTib1YhopUc8NA=
github.com/dimchansky/utfbom v1.1.1 h1:vV6w1AhK4VMnhBno/TPVCoK9U/LP0PkLCS9tbxHdi/U=
github.com/dimchansky/utfbom v1.1.1/go.mod h1:SxdoEBH5qIqFocHMyGOXVAybYJdr71b1Q/j0mACtrfE=
github.com/distribution/distribution/v3 v3.0.0-20221208165359-362910506bc2 h1:aBfCb7iqHmDEIp6fBvC/hQUddQfg+3qdYjwzaiP9Hnc=
@ -605,7 +605,7 @@ github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ=
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/ryanuber/columnize v2.1.0+incompatible/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
@ -1043,8 +1043,8 @@ google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqiv
google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE=
google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI=
google.golang.org/api v0.60.0/go.mod h1:d7rl65NZAkEQ90JFzqBjcRq1TVeG5ZoGV3sSpEnnVb4=
google.golang.org/api v0.131.0 h1:AcgWS2edQ4chVEt/SxgDKubVu/9/idCJy00tBGuGB4M=
google.golang.org/api v0.131.0/go.mod h1:7vtkbKv2REjJbxmHSkBTBQ5LUGvPdAqjjvt84XAfhpA=
google.golang.org/api v0.132.0 h1:8t2/+qZ26kAOGSmOiHwVycqVaDg7q3JDILrNi/Z6rvc=
google.golang.org/api v0.132.0/go.mod h1:AeTBC6GpJnJSRJjktDcPX0QwtS8pGYZOV6MSuSCusw0=
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
@ -1113,10 +1113,10 @@ google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEc
google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
google.golang.org/genproto v0.0.0-20211021150943-2b146023228c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
google.golang.org/genproto v0.0.0-20220107163113-42d7afdf6368/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
google.golang.org/genproto v0.0.0-20230629202037-9506855d4529 h1:9JucMWR7sPvCxUFd6UsOUNmA5kCcWOfORaT3tpAsKQs=
google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529 h1:s5YSX+ZH5b5vS9rnpGymvIyMpLRJizowqDlOuyjXnTk=
google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 h1:2FZP5XuJY9zQyGM5N0rtovnoXjiMUEIUMvw0m9wlpLc=
google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:8mL13HKkDa+IuJ8yruA3ci0q+0vsUz4m//+ottjwS5o=
google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130 h1:Au6te5hbKUV8pIYWHqOUZ1pva5qK/rwbIhoXEUB9Lu8=
google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130 h1:XVeBY8d/FaK4848myy41HBqnDwvxeV3zMZhwN1TvAMU=
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 h1:bVf09lpb+OJbByTj913DRJioFFAjf/ZGxEz7MajTp2U=
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM=
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
@ -1201,26 +1201,26 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
k8s.io/api v0.27.3 h1:yR6oQXXnUEBWEWcvPWS0jQL575KoAboQPfJAuKNrw5Y=
k8s.io/api v0.27.3/go.mod h1:C4BNvZnQOF7JA/0Xed2S+aUyJSfTGkGFxLXz9MnpIpg=
k8s.io/api v0.27.4 h1:0pCo/AN9hONazBKlNUdhQymmnfLRbSZjd5H5H3f0bSs=
k8s.io/api v0.27.4/go.mod h1:O3smaaX15NfxjzILfiln1D8Z3+gEYpjEpiNA/1EVK1Y=
k8s.io/apiextensions-apiserver v0.27.2 h1:iwhyoeS4xj9Y7v8YExhUwbVuBhMr3Q4bd/laClBV6Bo=
k8s.io/apiextensions-apiserver v0.27.2/go.mod h1:Oz9UdvGguL3ULgRdY9QMUzL2RZImotgxvGjdWRq6ZXQ=
k8s.io/apimachinery v0.27.3 h1:Ubye8oBufD04l9QnNtW05idcOe9Z3GQN8+7PqmuVcUM=
k8s.io/apimachinery v0.27.3/go.mod h1:XNfZ6xklnMCOGGFNqXG7bUrQCoR04dh/E7FprV6pb+E=
k8s.io/cli-runtime v0.27.3 h1:h592I+2eJfXj/4jVYM+tu9Rv8FEc/dyCoD80UJlMW2Y=
k8s.io/cli-runtime v0.27.3/go.mod h1:LzXud3vFFuDFXn2LIrWnscPgUiEj7gQQcYZE2UPn9Kw=
k8s.io/client-go v0.27.3 h1:7dnEGHZEJld3lYwxvLl7WoehK6lAq7GvgjxpA3nv1E8=
k8s.io/client-go v0.27.3/go.mod h1:2MBEKuTo6V1lbKy3z1euEGnhPfGZLKTS9tiJ2xodM48=
k8s.io/apimachinery v0.27.4 h1:CdxflD4AF61yewuid0fLl6bM4a3q04jWel0IlP+aYjs=
k8s.io/apimachinery v0.27.4/go.mod h1:XNfZ6xklnMCOGGFNqXG7bUrQCoR04dh/E7FprV6pb+E=
k8s.io/cli-runtime v0.27.4 h1:Zb0eci+58eHZNnoHhjRFc7W88s8dlG12VtIl3Nv2Hto=
k8s.io/cli-runtime v0.27.4/go.mod h1:k9Z1xiZq2xNplQmehpDquLgc+rE+pubpO1cK4al4Mlw=
k8s.io/client-go v0.27.4 h1:vj2YTtSJ6J4KxaC88P4pMPEQECWMY8gqPqsTgUKzvjk=
k8s.io/client-go v0.27.4/go.mod h1:ragcly7lUlN0SRPk5/ZkGnDjPknzb37TICq07WhI6Xc=
k8s.io/cloud-provider v0.27.0 h1:UWEvGvfd9VDRSrtmek7dDeHfUUtycHyvIO6TGI9bFJE=
k8s.io/cloud-provider v0.27.0/go.mod h1:hUbqXpAWGaOTUhwL5k2QO9i2l9mEMhdMV9ChbvB3Gmw=
k8s.io/cloud-provider-aws v1.27.2 h1:TKyzew4hXLzd81dDG3mNfsm1J++dJ98Ay9680dWpaK0=
k8s.io/cloud-provider-aws v1.27.2/go.mod h1:9vUb5mnVnReSRDBWcBxB1b0HOeEc472iOPmrnwpN9SA=
k8s.io/cloud-provider-gcp/providers v0.26.2 h1:AD4erb1NiTvXOAHMUBH+uVlf1baEfJqo/KXCsYAzAVs=
k8s.io/cloud-provider-gcp/providers v0.26.2/go.mod h1:dDBqOcDqYsqo7ZM7yuX+6Xg9WiyEPYk1Q9m2oHrnePo=
k8s.io/component-base v0.27.3 h1:g078YmdcdTfrCE4fFobt7qmVXwS8J/3cI1XxRi/2+6k=
k8s.io/component-base v0.27.3/go.mod h1:JNiKYcGImpQ44iwSYs6dysxzR9SxIIgQalk4HaCNVUY=
k8s.io/component-helpers v0.27.3 h1:oK7+AlwBKsSUIIRC5Vv8/4HEtmgzXNQD+zLbsOUwVso=
k8s.io/component-helpers v0.27.3/go.mod h1:uxhXqoWHh4eBVcPj+LKWjtQq0V/vP5ihn4xmf5xNZso=
k8s.io/component-base v0.27.4 h1:Wqc0jMKEDGjKXdae8hBXeskRP//vu1m6ypC+gwErj4c=
k8s.io/component-base v0.27.4/go.mod h1:hoiEETnLc0ioLv6WPeDt8vD34DDeB35MfQnxCARq3kY=
k8s.io/component-helpers v0.27.4 h1:l1hn/Zx9mWXflo5xz1mo5RRW2g8b6rptWCG7My6rYoE=
k8s.io/component-helpers v0.27.4/go.mod h1:ayW5btpTdJkVv+CcxhzNRfWT+oPrV6T6qZ1Ay6NEJNI=
k8s.io/csi-translation-lib v0.27.0 h1:1tv+MhNxJRFCmexqoSYXks4N/4zikOrgyLpYF63lXzo=
k8s.io/csi-translation-lib v0.27.0/go.mod h1:ZOPmKWI/2Ad2GRTIBXzOyX52NmtTcDTsh4GWqoHvHVA=
k8s.io/gengo v0.0.0-20230306165830-ab3349d207d4 h1:aClvVG6GbX10ISHcc24J+tqbr0S7fEe1MWkFJ7cWWCI=
@ -1234,12 +1234,12 @@ k8s.io/klog/v2 v2.100.1 h1:7WCHKK6K8fNhTqfBhISHQ97KrnJNFZMcQvKp7gP/tmg=
k8s.io/klog/v2 v2.100.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0=
k8s.io/kube-openapi v0.0.0-20230515203736-54b630e78af5 h1:azYPdzztXxPSa8wb+hksEKayiz0o+PPisO/d+QhWnoo=
k8s.io/kube-openapi v0.0.0-20230515203736-54b630e78af5/go.mod h1:kzo02I3kQ4BTtEfVLaPbjvCkX97YqGve33wzlb3fofQ=
k8s.io/kubectl v0.27.3 h1:HyC4o+8rCYheGDWrkcOQHGwDmyLKR5bxXFgpvF82BOw=
k8s.io/kubectl v0.27.3/go.mod h1:g9OQNCC2zxT+LT3FS09ZYqnDhlvsKAfFq76oyarBcq4=
k8s.io/kubelet v0.27.3 h1:5WhTV1iiBu9q/rr+gvy65LQ+K/e7dmgcaYjys5ipLqY=
k8s.io/kubelet v0.27.3/go.mod h1:Mz42qgZZgWgPmOJEYaR5evmh+EoSwFzEvPBozA2y9mg=
k8s.io/mount-utils v0.27.3 h1:oubkDKLTZUneW27wgyOmp8a1AAZj04vGmtq+YW8wdvY=
k8s.io/mount-utils v0.27.3/go.mod h1:vmcjYdi2Vg1VTWY7KkhvwJVY6WDHxb/QQhiQKkR8iNs=
k8s.io/kubectl v0.27.4 h1:RV1TQLIbtL34+vIM+W7HaS3KfAbqvy9lWn6pWB9els4=
k8s.io/kubectl v0.27.4/go.mod h1:qtc1s3BouB9KixJkriZMQqTsXMc+OAni6FeKAhq7q14=
k8s.io/kubelet v0.27.4 h1:P8+MoRx4ikcAc5eEa3k2A6kd8AXtoDRaoC8KX2HFZe4=
k8s.io/kubelet v0.27.4/go.mod h1:2y4peCA57vKEhBcDL6Q5EkPuGP7FFxj9U41NV9hk1ac=
k8s.io/mount-utils v0.27.4 h1:Se7Cskbrg/t6g4tXvwohuTzXdmTO0feTG0BwQvSE6I4=
k8s.io/mount-utils v0.27.4/go.mod h1:vmcjYdi2Vg1VTWY7KkhvwJVY6WDHxb/QQhiQKkR8iNs=
k8s.io/utils v0.0.0-20230711102312-30195339c3c7 h1:ZgnF1KZsYxWIifwSNZFZgNtWE89WI5yiP5WwlfDoIyc=
k8s.io/utils v0.0.0-20230711102312-30195339c3c7/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
oras.land/oras-go v1.2.3 h1:v8PJl+gEAntI1pJ/LCrDgsuk+1PKVavVEPsYIHFE5uY=

View File

@ -12,8 +12,8 @@ require (
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
github.com/octago/sflags v0.2.0
github.com/spf13/pflag v1.0.5
k8s.io/api v0.27.3
k8s.io/apimachinery v0.27.3
k8s.io/api v0.27.4
k8s.io/apimachinery v0.27.4
k8s.io/client-go v11.0.1-0.20190805182717-6502b5e7b1b5+incompatible
k8s.io/klog/v2 v2.100.1
k8s.io/kops v1.24.1
@ -23,11 +23,11 @@ require (
)
require (
cloud.google.com/go v0.110.2 // indirect
cloud.google.com/go v0.110.4 // indirect
cloud.google.com/go/compute v1.20.1 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/iam v0.13.0 // indirect
cloud.google.com/go/storage v1.29.0 // indirect
cloud.google.com/go/iam v1.1.0 // indirect
cloud.google.com/go/storage v1.30.1 // indirect
github.com/Azure/azure-pipeline-go v0.2.3 // indirect
github.com/Azure/azure-storage-blob-go v0.15.0 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
@ -35,7 +35,7 @@ require (
github.com/StackExchange/wmi v1.2.1 // indirect
github.com/acomagu/bufpipe v1.0.3 // indirect
github.com/apparentlymart/go-cidr v1.1.0 // indirect
github.com/aws/aws-sdk-go v1.44.301 // indirect
github.com/aws/aws-sdk-go v1.44.305 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/blang/semver v3.5.1+incompatible // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
@ -124,11 +124,11 @@ require (
golang.org/x/time v0.3.0 // indirect
golang.org/x/tools v0.9.1 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/api v0.131.0 // indirect
google.golang.org/api v0.132.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230629202037-9506855d4529 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 // indirect
google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect
google.golang.org/grpc v1.56.2 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect

View File

@ -33,8 +33,8 @@ cloud.google.com/go v0.75.0/go.mod h1:VGuuCn7PG0dwsd5XPVm2Mm3wlh3EL55/79EKB6hlPT
cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg=
cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8=
cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0=
cloud.google.com/go v0.110.2 h1:sdFPBr6xG9/wkBbfhmUz/JmZC7X6LavQgcrVINrKiVA=
cloud.google.com/go v0.110.2/go.mod h1:k04UEeEtb6ZBRTv3dZz4CeJC3jKGxyhl0sAiVVquxiw=
cloud.google.com/go v0.110.4 h1:1JYyxKMN9hd5dR2MYTPWkGUgcoxVVhg0LKNKEo0qvmk=
cloud.google.com/go v0.110.4/go.mod h1:+EYjdK8e5RME/VY/qLCAtuyALQ9q67dvuum8i+H5xsI=
cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE=
cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc=
@ -48,8 +48,8 @@ cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2Aawl
cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk=
cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk=
cloud.google.com/go/iam v0.13.0 h1:+CmB+K0J/33d0zSQ9SlFWUeCCEn5XJA0ZMZ3pHE9u8k=
cloud.google.com/go/iam v0.13.0/go.mod h1:ljOg+rcNfzZ5d6f1nAUJ8ZIxOaZUVoS14bKCtaLZ/D0=
cloud.google.com/go/iam v1.1.0 h1:67gSqaPukx7O8WLLHMa0PNs3EBGd2eE4d+psbO/CO94=
cloud.google.com/go/iam v1.1.0/go.mod h1:nxdHjaKfCr7fNYx/HJMM8LgiMugmveWlkatear5gVyk=
cloud.google.com/go/logging v1.0.0/go.mod h1:V1cc3ogwobYzQq5f2R7DS/GvRIrI4FKj01Gs5glwAls=
cloud.google.com/go/logging v1.1.2/go.mod h1:KrljuAHIw631j9+QXsnq9vDwsrwmdxfGpivMR68M7DY=
cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
@ -65,8 +65,8 @@ cloud.google.com/go/storage v1.9.0/go.mod h1:m+/etGaqZbylxaNT876QGXqEHp4PR2Rq5GM
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
cloud.google.com/go/storage v1.10.1-0.20200805182106-fcd132957b02/go.mod h1:bdhVveip9CJX75wUu7ALOTnCSKjv6PHRY0bCeBmePnw=
cloud.google.com/go/storage v1.12.0/go.mod h1:fFLk2dp2oAhDz8QFKwqrjdJvxSp/W2g7nillojlL5Ho=
cloud.google.com/go/storage v1.29.0 h1:6weCgzRvMg7lzuUurI4697AqIRPU1SvzHhynwpW31jI=
cloud.google.com/go/storage v1.29.0/go.mod h1:4puEjyTKnku6gfKoTfNOU/W+a9JyuVNxjpS5GBrB8h4=
cloud.google.com/go/storage v1.30.1 h1:uOdMxAs8HExqBlnLtnQyP0YkvbiDpdGShGKtx6U/oNM=
cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E=
code.gitea.io/sdk/gitea v0.12.0/go.mod h1:z3uwDV/b9Ls47NGukYM9XhnHtqPh/J+t40lsUrR6JDY=
contrib.go.opencensus.io/exporter/aws v0.0.0-20181029163544-2befc13012d0/go.mod h1:uu1P0UCM/6RbsMrgPa98ll8ZcHM858i/AD06a9aLRCA=
contrib.go.opencensus.io/exporter/ocagent v0.4.12/go.mod h1:450APlNTSR6FrvC3CTRqYosuDstRB9un7SOx2k/9ckA=
@ -305,8 +305,8 @@ github.com/aws/aws-sdk-go v1.31.6/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU
github.com/aws/aws-sdk-go v1.31.12/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
github.com/aws/aws-sdk-go v1.34.28/go.mod h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/+8rV9s48=
github.com/aws/aws-sdk-go v1.37.22/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
github.com/aws/aws-sdk-go v1.44.301 h1:VofuXktwHFTBUvoPiHxQis/3uKgu0RtgUwLtNujd3Zs=
github.com/aws/aws-sdk-go v1.44.301/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go v1.44.305 h1:fU/5lY3WyBjGU9fkmQYd8o4fZu+2RaOv/i+sPaJVvFg=
github.com/aws/aws-sdk-go v1.44.305/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aybabtme/rgbterm v0.0.0-20170906152045-cc83f3b3ce59/go.mod h1:q/89r3U2H7sSsE2t6Kca0lfwTK8JdoNGS/yzM/4iH5I=
github.com/bazelbuild/buildtools v0.0.0-20190917191645-69366ca98f89/go.mod h1:5JP0TXzWDHXv8qvxRC4InIazwdyDseBDbzESUMKk1yU=
github.com/bazelbuild/buildtools v0.0.0-20200922170545-10384511ce98/go.mod h1:5JP0TXzWDHXv8qvxRC4InIazwdyDseBDbzESUMKk1yU=
@ -1684,7 +1684,7 @@ github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFR
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
github.com/rogpeppe/go-internal v1.3.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
github.com/rogpeppe/go-internal v1.5.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ=
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c/go.mod h1:DM5xW0nvfNNm2uytzsvhI3OnX8uzaRAg8UX/CnDqbto=
github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY=
@ -2593,8 +2593,8 @@ google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjR
google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU=
google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94=
google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8=
google.golang.org/api v0.131.0 h1:AcgWS2edQ4chVEt/SxgDKubVu/9/idCJy00tBGuGB4M=
google.golang.org/api v0.131.0/go.mod h1:7vtkbKv2REjJbxmHSkBTBQ5LUGvPdAqjjvt84XAfhpA=
google.golang.org/api v0.132.0 h1:8t2/+qZ26kAOGSmOiHwVycqVaDg7q3JDILrNi/Z6rvc=
google.golang.org/api v0.132.0/go.mod h1:AeTBC6GpJnJSRJjktDcPX0QwtS8pGYZOV6MSuSCusw0=
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.3.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
@ -2683,12 +2683,12 @@ google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEc
google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
google.golang.org/genproto v0.0.0-20220107163113-42d7afdf6368/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc=
google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI=
google.golang.org/genproto v0.0.0-20230629202037-9506855d4529 h1:9JucMWR7sPvCxUFd6UsOUNmA5kCcWOfORaT3tpAsKQs=
google.golang.org/genproto v0.0.0-20230629202037-9506855d4529/go.mod h1:xZnkP7mREFX5MORlOPEzLMr+90PPZQ2QWzrVTWfAq64=
google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529 h1:s5YSX+ZH5b5vS9rnpGymvIyMpLRJizowqDlOuyjXnTk=
google.golang.org/genproto/googleapis/api v0.0.0-20230629202037-9506855d4529/go.mod h1:vHYtlOoi6TsQ3Uk2yxR7NI5z8uoV+3pZtR4jmHIkRig=
google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130 h1:2FZP5XuJY9zQyGM5N0rtovnoXjiMUEIUMvw0m9wlpLc=
google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:8mL13HKkDa+IuJ8yruA3ci0q+0vsUz4m//+ottjwS5o=
google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130 h1:Au6te5hbKUV8pIYWHqOUZ1pva5qK/rwbIhoXEUB9Lu8=
google.golang.org/genproto v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:O9kGHb51iE/nOGvQaDUuadVYqovW56s5emA88lQnj6Y=
google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130 h1:XVeBY8d/FaK4848myy41HBqnDwvxeV3zMZhwN1TvAMU=
google.golang.org/genproto/googleapis/api v0.0.0-20230706204954-ccb25ca9f130/go.mod h1:mPBs5jNgx2GuQGvFwUvVKqtn6HsUw9nP64BedgvqEsQ=
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 h1:bVf09lpb+OJbByTj913DRJioFFAjf/ZGxEz7MajTp2U=
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98/go.mod h1:TUfxEVdsvPg18p6AslUXFoLdpED4oBnGwyqk3dV1XzM=
google.golang.org/grpc v0.0.0-20160317175043-d3ddb4469d5a/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
google.golang.org/grpc v1.13.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
google.golang.org/grpc v1.14.0/go.mod h1:yo6s7OP7yaDglbqo1J04qKzAhqBH6lvTonzMVmEdcZw=
@ -2842,8 +2842,8 @@ k8s.io/api v0.20.6/go.mod h1:X9e8Qag6JV/bL5G6bU8sdVRltWKmdHsFUGS3eVndqE8=
k8s.io/api v0.21.1/go.mod h1:FstGROTmsSHBarKc8bylzXih8BLNYTiS3TZcsoEDg2s=
k8s.io/api v0.22.5/go.mod h1:mEhXyLaSD1qTOf40rRiKXkc+2iCem09rWLlFwhCEiAs=
k8s.io/api v0.24.2/go.mod h1:AHqbSkTm6YrQ0ObxjO3Pmp/ubFF/KuM7jU+3khoBsOg=
k8s.io/api v0.27.3 h1:yR6oQXXnUEBWEWcvPWS0jQL575KoAboQPfJAuKNrw5Y=
k8s.io/api v0.27.3/go.mod h1:C4BNvZnQOF7JA/0Xed2S+aUyJSfTGkGFxLXz9MnpIpg=
k8s.io/api v0.27.4 h1:0pCo/AN9hONazBKlNUdhQymmnfLRbSZjd5H5H3f0bSs=
k8s.io/api v0.27.4/go.mod h1:O3smaaX15NfxjzILfiln1D8Z3+gEYpjEpiNA/1EVK1Y=
k8s.io/apiextensions-apiserver v0.0.0-20190918201827-3de75813f604/go.mod h1:7H8sjDlWQu89yWB3FhZfsLyRCRLuoXoCoY5qtwW1q6I=
k8s.io/apiextensions-apiserver v0.16.4/go.mod h1:HYQwjujEkXmQNhap2C9YDdIVOSskGZ3et0Mvjcyjbto=
k8s.io/apiextensions-apiserver v0.17.2/go.mod h1:4KdMpjkEjjDI2pPfBA15OscyNldHWdBCfsWMDWAmSTs=
@ -2872,8 +2872,8 @@ k8s.io/apimachinery v0.21.1/go.mod h1:jbreFvJo3ov9rj7eWT7+sYiRx+qZuCYXwWT1bcDswP
k8s.io/apimachinery v0.22.1/go.mod h1:O3oNtNadZdeOMxHFVxOreoznohCpy0z6mocxbZr7oJ0=
k8s.io/apimachinery v0.22.5/go.mod h1:xziclGKwuuJ2RM5/rSFQSYAj0zdbci3DH8kj+WvyN0U=
k8s.io/apimachinery v0.24.2/go.mod h1:82Bi4sCzVBdpYjyI4jY6aHX+YCUchUIrZrXKedjd2UM=
k8s.io/apimachinery v0.27.3 h1:Ubye8oBufD04l9QnNtW05idcOe9Z3GQN8+7PqmuVcUM=
k8s.io/apimachinery v0.27.3/go.mod h1:XNfZ6xklnMCOGGFNqXG7bUrQCoR04dh/E7FprV6pb+E=
k8s.io/apimachinery v0.27.4 h1:CdxflD4AF61yewuid0fLl6bM4a3q04jWel0IlP+aYjs=
k8s.io/apimachinery v0.27.4/go.mod h1:XNfZ6xklnMCOGGFNqXG7bUrQCoR04dh/E7FprV6pb+E=
k8s.io/apiserver v0.0.0-20190918200908-1e17798da8c1/go.mod h1:4FuDU+iKPjdsdQSN3GsEKZLB/feQsj1y9dhhBDVV2Ns=
k8s.io/apiserver v0.16.4/go.mod h1:kbLJOak655g6W7C+muqu1F76u9wnEycfKMqbVaXIdAc=
k8s.io/apiserver v0.17.0/go.mod h1:ABM+9x/prjINN6iiffRVNCBR2Wk7uY4z+EtEGZD48cg=

View File

@ -18069,6 +18069,9 @@ var awsPartition = partition{
endpointKey{
Region: "ap-southeast-2",
}: endpoint{},
endpointKey{
Region: "ca-central-1",
}: endpoint{},
endpointKey{
Region: "eu-central-1",
}: endpoint{},
@ -18118,6 +18121,9 @@ var awsPartition = partition{
endpointKey{
Region: "ap-southeast-2",
}: endpoint{},
endpointKey{
Region: "ca-central-1",
}: endpoint{},
endpointKey{
Region: "eu-central-1",
}: endpoint{},
@ -34273,6 +34279,15 @@ var awsusgovPartition = partition{
},
"codepipeline": service{
Endpoints: serviceEndpoints{
endpointKey{
Region: "fips-us-gov-east-1",
}: endpoint{
Hostname: "codepipeline-fips.us-gov-east-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-gov-east-1",
},
Deprecated: boxedTrue,
},
endpointKey{
Region: "fips-us-gov-west-1",
}: endpoint{
@ -34285,6 +34300,12 @@ var awsusgovPartition = partition{
endpointKey{
Region: "us-gov-east-1",
}: endpoint{},
endpointKey{
Region: "us-gov-east-1",
Variant: fipsVariant,
}: endpoint{
Hostname: "codepipeline-fips.us-gov-east-1.amazonaws.com",
},
endpointKey{
Region: "us-gov-west-1",
}: endpoint{},
@ -37827,20 +37848,6 @@ var awsusgovPartition = partition{
}: endpoint{},
},
},
"savingsplans": service{
PartitionEndpoint: "aws-us-gov-global",
IsRegionalized: boxedFalse,
Endpoints: serviceEndpoints{
endpointKey{
Region: "aws-us-gov-global",
}: endpoint{
Hostname: "savingsplans.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-gov-west-1",
},
},
},
},
"secretsmanager": service{
Endpoints: serviceEndpoints{
endpointKey{

View File

@ -5,4 +5,4 @@ package aws
const SDKName = "aws-sdk-go"
// SDKVersion is the version of this SDK
const SDKVersion = "1.44.301"
const SDKVersion = "1.44.305"

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,10 @@
# Change Log
## [v1.100.0] - 2023-07-20
- #618 - @asaha - load balancers: introduce new type field
- #620 - @andrewsomething - account: add name field.
## [v1.99.0] - 2023-04-24
- #616 - @bentranter - Bump CI version for Go 1.20

View File

@ -27,6 +27,7 @@ type Account struct {
ReservedIPLimit int `json:"reserved_ip_limit,omitempty"`
VolumeLimit int `json:"volume_limit,omitempty"`
Email string `json:"email,omitempty"`
Name string `json:"name,omitempty"`
UUID string `json:"uuid,omitempty"`
EmailVerified bool `json:"email_verified,omitempty"`
Status string `json:"status,omitempty"`

View File

@ -21,7 +21,7 @@ import (
)
const (
libraryVersion = "1.99.0"
libraryVersion = "1.100.0"
defaultBaseURL = "https://api.digitalocean.com/"
userAgent = "godo/" + libraryVersion
mediaType = "application/json"

View File

@ -6,10 +6,17 @@ import (
"net/http"
)
const loadBalancersBasePath = "/v2/load_balancers"
const forwardingRulesPath = "forwarding_rules"
const (
dropletsPath = "droplets"
forwardingRulesPath = "forwarding_rules"
loadBalancersBasePath = "/v2/load_balancers"
)
const dropletsPath = "droplets"
// Load Balancer types.
const (
LoadBalancerTypeGlobal = "GLOBAL"
LoadBalancerTypeRegional = "REGIONAL"
)
// LoadBalancersService is an interface for managing load balancers with the DigitalOcean API.
// See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Load-Balancers
@ -35,6 +42,7 @@ type LoadBalancer struct {
SizeSlug string `json:"size,omitempty"`
// SizeUnit is mutually exclusive with SizeSlug. Only one should be specified
SizeUnit uint32 `json:"size_unit,omitempty"`
Type string `json:"type,omitempty"`
Algorithm string `json:"algorithm,omitempty"`
Status string `json:"status,omitempty"`
Created string `json:"created_at,omitempty"`
@ -74,6 +82,7 @@ func (l LoadBalancer) AsRequest() *LoadBalancerRequest {
Algorithm: l.Algorithm,
SizeSlug: l.SizeSlug,
SizeUnit: l.SizeUnit,
Type: l.Type,
ForwardingRules: append([]ForwardingRule(nil), l.ForwardingRules...),
DropletIDs: append([]int(nil), l.DropletIDs...),
Tag: l.Tag,
@ -190,6 +199,7 @@ type LoadBalancerRequest struct {
SizeSlug string `json:"size,omitempty"`
// SizeUnit is mutually exclusive with SizeSlug. Only one should be specified
SizeUnit uint32 `json:"size_unit,omitempty"`
Type string `json:"type,omitempty"`
ForwardingRules []ForwardingRule `json:"forwarding_rules,omitempty"`
HealthCheck *HealthCheck `json:"health_check,omitempty"`
StickySessions *StickySessions `json:"sticky_sessions,omitempty"`

View File

@ -21533,6 +21533,40 @@
"https://www.googleapis.com/auth/compute"
]
},
"setManagedProtectionTier": {
"description": "Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the billing account of the project must be subscribed to Managed Protection Plus. See Subscribing to Managed Protection Plus for more information.",
"flatPath": "projects/{project}/setManagedProtectionTier",
"httpMethod": "POST",
"id": "compute.projects.setManagedProtectionTier",
"parameterOrder": [
"project"
],
"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"
},
"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. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).",
"location": "query",
"type": "string"
}
},
"path": "projects/{project}/setManagedProtectionTier",
"request": {
"$ref": "ProjectsSetManagedProtectionTierRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"
]
},
"setUsageExportBucket": {
"description": "Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.",
"flatPath": "projects/{project}/setUsageExportBucket",
@ -29734,7 +29768,7 @@
]
},
"patch": {
"description": "Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"description": "Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"flatPath": "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}",
"httpMethod": "PATCH",
"id": "compute.regionSecurityPolicies.patch",
@ -34203,7 +34237,7 @@
]
},
"patch": {
"description": "Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"description": "Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"flatPath": "projects/{project}/global/securityPolicies/{securityPolicy}",
"httpMethod": "PATCH",
"id": "compute.securityPolicies.patch",
@ -34256,7 +34290,7 @@
]
},
"patchRule": {
"description": "Patches a rule at the specified priority.",
"description": "Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.",
"flatPath": "projects/{project}/global/securityPolicies/{securityPolicy}/patchRule",
"httpMethod": "POST",
"id": "compute.securityPolicies.patchRule",
@ -42087,7 +42121,7 @@
}
}
},
"revision": "20230701",
"revision": "20230711",
"rootUrl": "https://compute.googleapis.com/",
"schemas": {
"AWSV4Signature": {
@ -44962,7 +44996,7 @@
"type": "string"
},
"customResponseHeaders": {
"description": "Headers that the HTTP/S load balancer should add to proxied responses.",
"description": "Headers that the Application Load Balancer should add to proxied responses.",
"items": {
"type": "string"
},
@ -57554,14 +57588,14 @@
"type": "string"
},
"type": {
"description": "The type of update process. You can specify either PROACTIVE so that the instance group manager proactively executes actions in order to bring instances to their target versions or OPPORTUNISTIC so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).",
"description": "The type of update process. You can specify either PROACTIVE so that the MIG automatically updates VMs to the latest configurations or OPPORTUNISTIC so that you can select the VMs that you want to update.",
"enum": [
"OPPORTUNISTIC",
"PROACTIVE"
],
"enumDescriptions": [
"No action is being proactively performed in order to bring this IGM to its target version distribution (regardless of whether this distribution is expressed using instanceTemplate or versions field).",
"This IGM will actively converge to its target version distribution (regardless of whether this distribution is expressed using instanceTemplate or versions field)."
"MIG will apply new configurations to existing VMs only when you selectively target specific or all VMs to be updated.",
"MIG will automatically apply new configurations to all or a subset of existing VMs and also to new VMs that are added to the group."
],
"type": "string"
}
@ -72352,6 +72386,20 @@
"description": "[Output Only] Type of the resource. Always compute#project for projects.",
"type": "string"
},
"managedProtectionTier": {
"description": "[Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of the following values: CA_STANDARD, CAMP_PLUS_MONTHLY. If this field is not specified, it is assumed to be CA_STANDARD.",
"enum": [
"CAMP_PLUS_ANNUAL",
"CAMP_PLUS_MONTHLY",
"CA_STANDARD"
],
"enumDescriptions": [
"Plus tier protection annual.",
"Plus tier protection monthly.",
"Standard protection."
],
"type": "string"
},
"name": {
"description": "The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine.",
"type": "string"
@ -72492,6 +72540,26 @@
},
"type": "object"
},
"ProjectsSetManagedProtectionTierRequest": {
"id": "ProjectsSetManagedProtectionTierRequest",
"properties": {
"managedProtectionTier": {
"description": "Managed protection tier to be set.",
"enum": [
"CAMP_PLUS_ANNUAL",
"CAMP_PLUS_MONTHLY",
"CA_STANDARD"
],
"enumDescriptions": [
"Plus tier protection annual.",
"Plus tier protection monthly.",
"Standard protection."
],
"type": "string"
}
},
"type": "object"
},
"PublicAdvertisedPrefix": {
"description": "A public advertised prefix represents an aggregated IP prefix or netblock which customers bring to cloud. The IP prefix is a single unit of route advertisement and is announced globally to the internet.",
"id": "PublicAdvertisedPrefix",
@ -76258,6 +76326,7 @@
"NO_RESERVATION",
"SPECIFIC_RESERVATION",
"SPECIFIC_THEN_ANY_RESERVATION",
"SPECIFIC_THEN_NO_RESERVATION",
"UNSPECIFIED"
],
"enumDescriptions": [
@ -76265,6 +76334,7 @@
"Do not consume from any allocated capacity.",
"Must consume from a specific reservation. Must specify key value fields for specifying the reservations.",
"Prefer to consume from a specific reservation, but still consume any reservation available if the specified reservation is not available or exhausted. Must specify key value fields for specifying the reservations.",
"Prefer to consume from a specific reservation, but still consume from the on-demand pool if the specified reservation is exhausted. Must specify key value fields for specifying the reservations.",
""
],
"type": "string"

View File

@ -5525,8 +5525,8 @@ type BackendBucket struct {
// format.
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// CustomResponseHeaders: Headers that the HTTP/S load balancer should
// add to proxied responses.
// CustomResponseHeaders: Headers that the Application Load Balancer
// should add to proxied responses.
CustomResponseHeaders []string `json:"customResponseHeaders,omitempty"`
// Description: An optional textual description of the resource;
@ -23820,20 +23820,16 @@ type InstanceGroupManagerUpdatePolicy struct {
ReplacementMethod string `json:"replacementMethod,omitempty"`
// Type: The type of update process. You can specify either PROACTIVE so
// that the instance group manager proactively executes actions in order
// to bring instances to their target versions or OPPORTUNISTIC so that
// no action is proactively executed but the update will be performed as
// part of other actions (for example, resizes or recreateInstances
// calls).
// that the MIG automatically updates VMs to the latest configurations
// or OPPORTUNISTIC so that you can select the VMs that you want to
// update.
//
// Possible values:
// "OPPORTUNISTIC" - No action is being proactively performed in order
// to bring this IGM to its target version distribution (regardless of
// whether this distribution is expressed using instanceTemplate or
// versions field).
// "PROACTIVE" - This IGM will actively converge to its target version
// distribution (regardless of whether this distribution is expressed
// using instanceTemplate or versions field).
// "OPPORTUNISTIC" - MIG will apply new configurations to existing VMs
// only when you selectively target specific or all VMs to be updated.
// "PROACTIVE" - MIG will automatically apply new configurations to
// all or a subset of existing VMs and also to new VMs that are added to
// the group.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g.
@ -44494,6 +44490,17 @@ type Project struct {
// projects.
Kind string `json:"kind,omitempty"`
// ManagedProtectionTier: [Output Only] The Cloud Armor Managed
// Protection (CAMP) tier for this project. It can be one of the
// following values: CA_STANDARD, CAMP_PLUS_MONTHLY. If this field is
// not specified, it is assumed to be CA_STANDARD.
//
// Possible values:
// "CAMP_PLUS_ANNUAL" - Plus tier protection annual.
// "CAMP_PLUS_MONTHLY" - Plus tier protection monthly.
// "CA_STANDARD" - Standard protection.
ManagedProtectionTier string `json:"managedProtectionTier,omitempty"`
// Name: The project ID. For example: my-example-project. Use the
// project ID to make requests to Compute Engine.
Name string `json:"name,omitempty"`
@ -44758,6 +44765,40 @@ func (s *ProjectsSetDefaultServiceAccountRequest) MarshalJSON() ([]byte, error)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ProjectsSetManagedProtectionTierRequest struct {
// ManagedProtectionTier: Managed protection tier to be set.
//
// Possible values:
// "CAMP_PLUS_ANNUAL" - Plus tier protection annual.
// "CAMP_PLUS_MONTHLY" - Plus tier protection monthly.
// "CA_STANDARD" - Standard protection.
ManagedProtectionTier string `json:"managedProtectionTier,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ManagedProtectionTier") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ManagedProtectionTier") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ProjectsSetManagedProtectionTierRequest) MarshalJSON() ([]byte, error) {
type NoMethod ProjectsSetManagedProtectionTierRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PublicAdvertisedPrefix: A public advertised prefix represents an
// aggregated IP prefix or netblock which customers bring to cloud. The
// IP prefix is a single unit of route advertisement and is announced
@ -49873,6 +49914,10 @@ type ReservationAffinity struct {
// reservation, but still consume any reservation available if the
// specified reservation is not available or exhausted. Must specify key
// value fields for specifying the reservations.
// "SPECIFIC_THEN_NO_RESERVATION" - Prefer to consume from a specific
// reservation, but still consume from the on-demand pool if the
// specified reservation is exhausted. Must specify key value fields for
// specifying the reservations.
// "UNSPECIFIED"
ConsumeReservationType string `json:"consumeReservationType,omitempty"`
@ -164269,6 +164314,173 @@ func (c *ProjectsSetDefaultServiceAccountCall) Do(opts ...googleapi.CallOption)
}
// method id "compute.projects.setManagedProtectionTier":
type ProjectsSetManagedProtectionTierCall struct {
s *Service
project string
projectssetmanagedprotectiontierrequest *ProjectsSetManagedProtectionTierRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// SetManagedProtectionTier: Sets the Cloud Armor Managed Protection
// (CAMP) tier of the project. To set PLUS or above the billing account
// of the project must be subscribed to Managed Protection Plus. See
// Subscribing to Managed Protection Plus for more information.
//
// - project: Project ID for this request.
func (r *ProjectsService) SetManagedProtectionTier(project string, projectssetmanagedprotectiontierrequest *ProjectsSetManagedProtectionTierRequest) *ProjectsSetManagedProtectionTierCall {
c := &ProjectsSetManagedProtectionTierCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.project = project
c.projectssetmanagedprotectiontierrequest = projectssetmanagedprotectiontierrequest
return c
}
// RequestId sets the optional parameter "requestId": 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. For example, consider a
// situation where you make an initial request and the request times
// out. If you make the request again with the same request ID, the
// server can check if original operation with the same request ID was
// received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments. The request
// ID must be a valid UUID with the exception that zero UUID is not
// supported ( 00000000-0000-0000-0000-000000000000).
func (c *ProjectsSetManagedProtectionTierCall) RequestId(requestId string) *ProjectsSetManagedProtectionTierCall {
c.urlParams_.Set("requestId", requestId)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ProjectsSetManagedProtectionTierCall) Fields(s ...googleapi.Field) *ProjectsSetManagedProtectionTierCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *ProjectsSetManagedProtectionTierCall) Context(ctx context.Context) *ProjectsSetManagedProtectionTierCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ProjectsSetManagedProtectionTierCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsSetManagedProtectionTierCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.projectssetmanagedprotectiontierrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/setManagedProtectionTier")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"project": c.project,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "compute.projects.setManagedProtectionTier" call.
// Exactly one of *Operation or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *Operation.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
func (c *ProjectsSetManagedProtectionTierCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, gensupport.WrapError(&googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
})
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, gensupport.WrapError(err)
}
ret := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the billing account of the project must be subscribed to Managed Protection Plus. See Subscribing to Managed Protection Plus for more information.",
// "flatPath": "projects/{project}/setManagedProtectionTier",
// "httpMethod": "POST",
// "id": "compute.projects.setManagedProtectionTier",
// "parameterOrder": [
// "project"
// ],
// "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"
// },
// "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. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).",
// "location": "query",
// "type": "string"
// }
// },
// "path": "projects/{project}/setManagedProtectionTier",
// "request": {
// "$ref": "ProjectsSetManagedProtectionTierRequest"
// },
// "response": {
// "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/compute"
// ]
// }
}
// method id "compute.projects.setUsageExportBucket":
type ProjectsSetUsageExportBucketCall struct {
@ -197298,7 +197510,7 @@ type RegionSecurityPoliciesPatchCall struct {
}
// Patch: Patches the specified policy with the data included in the
// request. To clear fields in the rule, leave the fields empty and
// request. To clear fields in the policy, leave the fields empty and
// specify them in the updateMask. This cannot be used to be update the
// rules in the policy. Please use the per rule methods like addRule,
// patchRule, and removeRule instead.
@ -197437,7 +197649,7 @@ func (c *RegionSecurityPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Ope
}
return ret, nil
// {
// "description": "Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
// "description": "Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
// "flatPath": "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}",
// "httpMethod": "PATCH",
// "id": "compute.regionSecurityPolicies.patch",
@ -215501,7 +215713,7 @@ type SecurityPoliciesPatchCall struct {
}
// Patch: Patches the specified policy with the data included in the
// request. To clear fields in the rule, leave the fields empty and
// request. To clear fields in the policy, leave the fields empty and
// specify them in the updateMask. This cannot be used to be update the
// rules in the policy. Please use the per rule methods like addRule,
// patchRule, and removeRule instead.
@ -215637,7 +215849,7 @@ func (c *SecurityPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation
}
return ret, nil
// {
// "description": "Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
// "description": "Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
// "flatPath": "projects/{project}/global/securityPolicies/{securityPolicy}",
// "httpMethod": "PATCH",
// "id": "compute.securityPolicies.patch",
@ -215704,7 +215916,9 @@ type SecurityPoliciesPatchRuleCall struct {
header_ http.Header
}
// PatchRule: Patches a rule at the specified priority.
// PatchRule: Patches a rule at the specified priority. To clear fields
// in the rule, leave the fields empty and specify them in the
// updateMask.
//
// - project: Project ID for this request.
// - securityPolicy: Name of the security policy to update.
@ -215829,7 +216043,7 @@ func (c *SecurityPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Opera
}
return ret, nil
// {
// "description": "Patches a rule at the specified priority.",
// "description": "Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.",
// "flatPath": "projects/{project}/global/securityPolicies/{securityPolicy}/patchRule",
// "httpMethod": "POST",
// "id": "compute.securityPolicies.patchRule",

View File

@ -19838,6 +19838,40 @@
"https://www.googleapis.com/auth/compute"
]
},
"setManagedProtectionTier": {
"description": "Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the billing account of the project must be subscribed to Managed Protection Plus. See Subscribing to Managed Protection Plus for more information.",
"flatPath": "projects/{project}/setManagedProtectionTier",
"httpMethod": "POST",
"id": "compute.projects.setManagedProtectionTier",
"parameterOrder": [
"project"
],
"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"
},
"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. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).",
"location": "query",
"type": "string"
}
},
"path": "projects/{project}/setManagedProtectionTier",
"request": {
"$ref": "ProjectsSetManagedProtectionTierRequest"
},
"response": {
"$ref": "Operation"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"
]
},
"setUsageExportBucket": {
"description": "Enables the usage export feature and sets the usage export bucket where reports are stored. If you provide an empty request body using this method, the usage export feature will be disabled.",
"flatPath": "projects/{project}/setUsageExportBucket",
@ -27245,7 +27279,7 @@
]
},
"patch": {
"description": "Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"description": "Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"flatPath": "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}",
"httpMethod": "PATCH",
"id": "compute.regionSecurityPolicies.patch",
@ -29387,6 +29421,73 @@
}
}
},
"regionZones": {
"methods": {
"list": {
"description": "Retrieves the list of Zone resources under the specific region available to the specified project.",
"flatPath": "projects/{project}/regions/{region}/zones",
"httpMethod": "GET",
"id": "compute.regionZones.list",
"parameterOrder": [
"project",
"region"
],
"parameters": {
"filter": {
"description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`.",
"location": "query",
"type": "string"
},
"maxResults": {
"default": "500",
"description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)",
"format": "uint32",
"location": "query",
"minimum": "0",
"type": "integer"
},
"orderBy": {
"description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.",
"location": "query",
"type": "string"
},
"pageToken": {
"description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.",
"location": "query",
"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"
},
"region": {
"description": "Region for this request.",
"location": "path",
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
"required": true,
"type": "string"
},
"returnPartialSuccess": {
"description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.",
"location": "query",
"type": "boolean"
}
},
"path": "projects/{project}/regions/{region}/zones",
"response": {
"$ref": "ZoneList"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"
]
}
}
},
"regions": {
"methods": {
"get": {
@ -31590,7 +31691,7 @@
]
},
"patch": {
"description": "Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"description": "Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"flatPath": "projects/{project}/global/securityPolicies/{securityPolicy}",
"httpMethod": "PATCH",
"id": "compute.securityPolicies.patch",
@ -31638,7 +31739,7 @@
]
},
"patchRule": {
"description": "Patches a rule at the specified priority.",
"description": "Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.",
"flatPath": "projects/{project}/global/securityPolicies/{securityPolicy}/patchRule",
"httpMethod": "POST",
"id": "compute.securityPolicies.patchRule",
@ -38519,7 +38620,7 @@
}
}
},
"revision": "20230701",
"revision": "20230711",
"rootUrl": "https://compute.googleapis.com/",
"schemas": {
"AWSV4Signature": {
@ -41177,7 +41278,7 @@
"type": "string"
},
"customResponseHeaders": {
"description": "Headers that the HTTP/S load balancer should add to proxied responses.",
"description": "Headers that the Application Load Balancer should add to proxied responses.",
"items": {
"type": "string"
},
@ -51704,6 +51805,7 @@
"description": "[Output only] Current state of the request.",
"enum": [
"ACCEPTED",
"CANCELLED",
"CREATING",
"FAILED",
"PROVISIONING",
@ -51711,6 +51813,7 @@
],
"enumDescriptions": [
"The request was created successfully and was accepted for provisioning when the capacity becomes available.",
"The request is cancelled.",
"resize request is being created and may still fail creation.",
"The request failed before or during provisioning. If the request fails during provisioning, any VMs that were created during provisioning are rolled back and removed from the MIG.",
"The target resource(s) are being provisioned.",
@ -52087,14 +52190,14 @@
"type": "string"
},
"type": {
"description": "The type of update process. You can specify either PROACTIVE so that the instance group manager proactively executes actions in order to bring instances to their target versions or OPPORTUNISTIC so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).",
"description": "The type of update process. You can specify either PROACTIVE so that the MIG automatically updates VMs to the latest configurations or OPPORTUNISTIC so that you can select the VMs that you want to update.",
"enum": [
"OPPORTUNISTIC",
"PROACTIVE"
],
"enumDescriptions": [
"No action is being proactively performed in order to bring this IGM to its target version distribution (regardless of whether this distribution is expressed using instanceTemplate or versions field).",
"This IGM will actively converge to its target version distribution (regardless of whether this distribution is expressed using instanceTemplate or versions field)."
"MIG will apply new configurations to existing VMs only when you selectively target specific or all VMs to be updated.",
"MIG will automatically apply new configurations to all or a subset of existing VMs and also to new VMs that are added to the group."
],
"type": "string"
}
@ -65394,6 +65497,20 @@
"description": "[Output Only] Type of the resource. Always compute#project for projects.",
"type": "string"
},
"managedProtectionTier": {
"description": "[Output Only] The Cloud Armor Managed Protection (CAMP) tier for this project. It can be one of the following values: CA_STANDARD, CAMP_PLUS_MONTHLY. If this field is not specified, it is assumed to be CA_STANDARD.",
"enum": [
"CAMP_PLUS_ANNUAL",
"CAMP_PLUS_MONTHLY",
"CA_STANDARD"
],
"enumDescriptions": [
"Plus tier protection annual.",
"Plus tier protection monthly.",
"Standard protection."
],
"type": "string"
},
"name": {
"description": "The project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine.",
"type": "string"
@ -65518,6 +65635,26 @@
},
"type": "object"
},
"ProjectsSetManagedProtectionTierRequest": {
"id": "ProjectsSetManagedProtectionTierRequest",
"properties": {
"managedProtectionTier": {
"description": "Managed protection tier to be set.",
"enum": [
"CAMP_PLUS_ANNUAL",
"CAMP_PLUS_MONTHLY",
"CA_STANDARD"
],
"enumDescriptions": [
"Plus tier protection annual.",
"Plus tier protection monthly.",
"Standard protection."
],
"type": "string"
}
},
"type": "object"
},
"PublicAdvertisedPrefix": {
"description": "A public advertised prefix represents an aggregated IP prefix or netblock which customers bring to cloud. The IP prefix is a single unit of route advertisement and is announced globally to the internet.",
"id": "PublicAdvertisedPrefix",
@ -66691,6 +66828,11 @@
"description": "The map holding related quota dimensions.",
"type": "object"
},
"futureLimit": {
"description": "Future quota limit being rolled out. The limit's unit depends on the quota type or metric.",
"format": "double",
"type": "number"
},
"limit": {
"description": "Current effective quota limit. The limit's unit depends on the quota type or metric.",
"format": "double",
@ -66703,6 +66845,18 @@
"metricName": {
"description": "The Compute Engine quota metric name.",
"type": "string"
},
"rolloutStatus": {
"description": "Rollout status of the future quota limit.",
"enum": [
"IN_PROGRESS",
"ROLLOUT_STATUS_UNSPECIFIED"
],
"enumDescriptions": [
"IN_PROGRESS - A rollout is in process which will change the limit value to future limit.",
"ROLLOUT_STATUS_UNSPECIFIED - Rollout status is not specified. The default value."
],
"type": "string"
}
},
"type": "object"
@ -72017,6 +72171,10 @@
],
"type": "string"
},
"localSsdRecoveryTimeout": {
"$ref": "Duration",
"description": "Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour."
},
"locationHint": {
"description": "An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.",
"type": "string"
@ -73898,6 +74056,10 @@
"description": "[Output Only] A connection connected to this service attachment.",
"id": "ServiceAttachmentConnectedEndpoint",
"properties": {
"consumerNetwork": {
"description": "The url of the consumer network.",
"type": "string"
},
"endpoint": {
"description": "The url of a connected endpoint.",
"type": "string"

View File

@ -217,6 +217,7 @@ func New(client *http.Client) (*Service, error) {
s.RegionTargetHttpsProxies = NewRegionTargetHttpsProxiesService(s)
s.RegionTargetTcpProxies = NewRegionTargetTcpProxiesService(s)
s.RegionUrlMaps = NewRegionUrlMapsService(s)
s.RegionZones = NewRegionZonesService(s)
s.Regions = NewRegionsService(s)
s.Reservations = NewReservationsService(s)
s.ResourcePolicies = NewResourcePoliciesService(s)
@ -393,6 +394,8 @@ type Service struct {
RegionUrlMaps *RegionUrlMapsService
RegionZones *RegionZonesService
Regions *RegionsService
Reservations *ReservationsService
@ -1097,6 +1100,15 @@ type RegionUrlMapsService struct {
s *Service
}
func NewRegionZonesService(s *Service) *RegionZonesService {
rs := &RegionZonesService{s: s}
return rs
}
type RegionZonesService struct {
s *Service
}
func NewRegionsService(s *Service) *RegionsService {
rs := &RegionsService{s: s}
return rs
@ -5140,8 +5152,8 @@ type BackendBucket struct {
// format.
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// CustomResponseHeaders: Headers that the HTTP/S load balancer should
// add to proxied responses.
// CustomResponseHeaders: Headers that the Application Load Balancer
// should add to proxied responses.
CustomResponseHeaders []string `json:"customResponseHeaders,omitempty"`
// Description: An optional textual description of the resource;
@ -20464,6 +20476,7 @@ type InstanceGroupManagerResizeRequest struct {
// Possible values:
// "ACCEPTED" - The request was created successfully and was accepted
// for provisioning when the capacity becomes available.
// "CANCELLED" - The request is cancelled.
// "CREATING" - resize request is being created and may still fail
// creation.
// "FAILED" - The request failed before or during provisioning. If the
@ -21119,20 +21132,16 @@ type InstanceGroupManagerUpdatePolicy struct {
ReplacementMethod string `json:"replacementMethod,omitempty"`
// Type: The type of update process. You can specify either PROACTIVE so
// that the instance group manager proactively executes actions in order
// to bring instances to their target versions or OPPORTUNISTIC so that
// no action is proactively executed but the update will be performed as
// part of other actions (for example, resizes or recreateInstances
// calls).
// that the MIG automatically updates VMs to the latest configurations
// or OPPORTUNISTIC so that you can select the VMs that you want to
// update.
//
// Possible values:
// "OPPORTUNISTIC" - No action is being proactively performed in order
// to bring this IGM to its target version distribution (regardless of
// whether this distribution is expressed using instanceTemplate or
// versions field).
// "PROACTIVE" - This IGM will actively converge to its target version
// distribution (regardless of whether this distribution is expressed
// using instanceTemplate or versions field).
// "OPPORTUNISTIC" - MIG will apply new configurations to existing VMs
// only when you selectively target specific or all VMs to be updated.
// "PROACTIVE" - MIG will automatically apply new configurations to
// all or a subset of existing VMs and also to new VMs that are added to
// the group.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g.
@ -39802,6 +39811,17 @@ type Project struct {
// projects.
Kind string `json:"kind,omitempty"`
// ManagedProtectionTier: [Output Only] The Cloud Armor Managed
// Protection (CAMP) tier for this project. It can be one of the
// following values: CA_STANDARD, CAMP_PLUS_MONTHLY. If this field is
// not specified, it is assumed to be CA_STANDARD.
//
// Possible values:
// "CAMP_PLUS_ANNUAL" - Plus tier protection annual.
// "CAMP_PLUS_MONTHLY" - Plus tier protection monthly.
// "CA_STANDARD" - Standard protection.
ManagedProtectionTier string `json:"managedProtectionTier,omitempty"`
// Name: The project ID. For example: my-example-project. Use the
// project ID to make requests to Compute Engine.
Name string `json:"name,omitempty"`
@ -40029,6 +40049,40 @@ func (s *ProjectsSetDefaultNetworkTierRequest) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ProjectsSetManagedProtectionTierRequest struct {
// ManagedProtectionTier: Managed protection tier to be set.
//
// Possible values:
// "CAMP_PLUS_ANNUAL" - Plus tier protection annual.
// "CAMP_PLUS_MONTHLY" - Plus tier protection monthly.
// "CA_STANDARD" - Standard protection.
ManagedProtectionTier string `json:"managedProtectionTier,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ManagedProtectionTier") to unconditionally include in API requests.
// By default, fields with empty or default values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ManagedProtectionTier") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ProjectsSetManagedProtectionTierRequest) MarshalJSON() ([]byte, error) {
type NoMethod ProjectsSetManagedProtectionTierRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// PublicAdvertisedPrefix: A public advertised prefix represents an
// aggregated IP prefix or netblock which customers bring to cloud. The
// IP prefix is a single unit of route advertisement and is announced
@ -41314,6 +41368,10 @@ type QuotaExceededInfo struct {
// Dimensions: The map holding related quota dimensions.
Dimensions map[string]string `json:"dimensions,omitempty"`
// FutureLimit: Future quota limit being rolled out. The limit's unit
// depends on the quota type or metric.
FutureLimit float64 `json:"futureLimit,omitempty"`
// Limit: Current effective quota limit. The limit's unit depends on the
// quota type or metric.
Limit float64 `json:"limit,omitempty"`
@ -41324,6 +41382,15 @@ type QuotaExceededInfo struct {
// MetricName: The Compute Engine quota metric name.
MetricName string `json:"metricName,omitempty"`
// RolloutStatus: Rollout status of the future quota limit.
//
// Possible values:
// "IN_PROGRESS" - IN_PROGRESS - A rollout is in process which will
// change the limit value to future limit.
// "ROLLOUT_STATUS_UNSPECIFIED" - ROLLOUT_STATUS_UNSPECIFIED - Rollout
// status is not specified. The default value.
RolloutStatus string `json:"rolloutStatus,omitempty"`
// ForceSendFields is a list of field names (e.g. "Dimensions") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
@ -41350,13 +41417,15 @@ func (s *QuotaExceededInfo) MarshalJSON() ([]byte, error) {
func (s *QuotaExceededInfo) UnmarshalJSON(data []byte) error {
type NoMethod QuotaExceededInfo
var s1 struct {
Limit gensupport.JSONFloat64 `json:"limit"`
FutureLimit gensupport.JSONFloat64 `json:"futureLimit"`
Limit gensupport.JSONFloat64 `json:"limit"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.FutureLimit = float64(s1.FutureLimit)
s.Limit = float64(s1.Limit)
return nil
}
@ -48661,6 +48730,12 @@ type Scheduling struct {
// action.
InstanceTerminationAction string `json:"instanceTerminationAction,omitempty"`
// LocalSsdRecoveryTimeout: Specifies the maximum amount of time a Local
// Ssd Vm should wait while recovery of the Local Ssd state is
// attempted. Its value should be in between 0 and 168 hours with hour
// granularity and the default value being 1 hour.
LocalSsdRecoveryTimeout *Duration `json:"localSsdRecoveryTimeout,omitempty"`
// LocationHint: An opaque location hint used to place the instance
// close to other resources. This field is for use by internal tools
// that use the public API.
@ -51449,6 +51524,9 @@ func (s *ServiceAttachmentAggregatedListWarningData) MarshalJSON() ([]byte, erro
// ServiceAttachmentConnectedEndpoint: [Output Only] A connection
// connected to this service attachment.
type ServiceAttachmentConnectedEndpoint struct {
// ConsumerNetwork: The url of the consumer network.
ConsumerNetwork string `json:"consumerNetwork,omitempty"`
// Endpoint: The url of a connected endpoint.
Endpoint string `json:"endpoint,omitempty"`
@ -51470,7 +51548,7 @@ type ServiceAttachmentConnectedEndpoint struct {
// "STATUS_UNSPECIFIED"
Status string `json:"status,omitempty"`
// ForceSendFields is a list of field names (e.g. "Endpoint") to
// ForceSendFields is a list of field names (e.g. "ConsumerNetwork") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
@ -51478,12 +51556,13 @@ type ServiceAttachmentConnectedEndpoint struct {
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Endpoint") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "ConsumerNetwork") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
@ -149174,6 +149253,173 @@ func (c *ProjectsSetDefaultNetworkTierCall) Do(opts ...googleapi.CallOption) (*O
}
// method id "compute.projects.setManagedProtectionTier":
type ProjectsSetManagedProtectionTierCall struct {
s *Service
project string
projectssetmanagedprotectiontierrequest *ProjectsSetManagedProtectionTierRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// SetManagedProtectionTier: Sets the Cloud Armor Managed Protection
// (CAMP) tier of the project. To set PLUS or above the billing account
// of the project must be subscribed to Managed Protection Plus. See
// Subscribing to Managed Protection Plus for more information.
//
// - project: Project ID for this request.
func (r *ProjectsService) SetManagedProtectionTier(project string, projectssetmanagedprotectiontierrequest *ProjectsSetManagedProtectionTierRequest) *ProjectsSetManagedProtectionTierCall {
c := &ProjectsSetManagedProtectionTierCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.project = project
c.projectssetmanagedprotectiontierrequest = projectssetmanagedprotectiontierrequest
return c
}
// RequestId sets the optional parameter "requestId": 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. For example, consider a
// situation where you make an initial request and the request times
// out. If you make the request again with the same request ID, the
// server can check if original operation with the same request ID was
// received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments. The request
// ID must be a valid UUID with the exception that zero UUID is not
// supported ( 00000000-0000-0000-0000-000000000000).
func (c *ProjectsSetManagedProtectionTierCall) RequestId(requestId string) *ProjectsSetManagedProtectionTierCall {
c.urlParams_.Set("requestId", requestId)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ProjectsSetManagedProtectionTierCall) Fields(s ...googleapi.Field) *ProjectsSetManagedProtectionTierCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *ProjectsSetManagedProtectionTierCall) Context(ctx context.Context) *ProjectsSetManagedProtectionTierCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ProjectsSetManagedProtectionTierCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ProjectsSetManagedProtectionTierCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.projectssetmanagedprotectiontierrequest)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/setManagedProtectionTier")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("POST", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"project": c.project,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "compute.projects.setManagedProtectionTier" call.
// Exactly one of *Operation or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *Operation.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
func (c *ProjectsSetManagedProtectionTierCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, gensupport.WrapError(&googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
})
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, gensupport.WrapError(err)
}
ret := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Sets the Cloud Armor Managed Protection (CAMP) tier of the project. To set PLUS or above the billing account of the project must be subscribed to Managed Protection Plus. See Subscribing to Managed Protection Plus for more information.",
// "flatPath": "projects/{project}/setManagedProtectionTier",
// "httpMethod": "POST",
// "id": "compute.projects.setManagedProtectionTier",
// "parameterOrder": [
// "project"
// ],
// "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"
// },
// "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. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).",
// "location": "query",
// "type": "string"
// }
// },
// "path": "projects/{project}/setManagedProtectionTier",
// "request": {
// "$ref": "ProjectsSetManagedProtectionTierRequest"
// },
// "response": {
// "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/compute"
// ]
// }
}
// method id "compute.projects.setUsageExportBucket":
type ProjectsSetUsageExportBucketCall struct {
@ -178951,7 +179197,7 @@ type RegionSecurityPoliciesPatchCall struct {
}
// Patch: Patches the specified policy with the data included in the
// request. To clear fields in the rule, leave the fields empty and
// request. To clear fields in the policy, leave the fields empty and
// specify them in the updateMask. This cannot be used to be update the
// rules in the policy. Please use the per rule methods like addRule,
// patchRule, and removeRule instead.
@ -179084,7 +179330,7 @@ func (c *RegionSecurityPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Ope
}
return ret, nil
// {
// "description": "Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
// "description": "Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
// "flatPath": "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}",
// "httpMethod": "PATCH",
// "id": "compute.regionSecurityPolicies.patch",
@ -187366,6 +187612,298 @@ func (c *RegionUrlMapsValidateCall) Do(opts ...googleapi.CallOption) (*UrlMapsVa
}
// method id "compute.regionZones.list":
type RegionZonesListCall struct {
s *Service
project string
region string
urlParams_ gensupport.URLParams
ifNoneMatch_ string
ctx_ context.Context
header_ http.Header
}
// List: Retrieves the list of Zone resources under the specific region
// available to the specified project.
//
// - project: Project ID for this request.
// - region: Region for this request.
func (r *RegionZonesService) List(project string, region string) *RegionZonesListCall {
c := &RegionZonesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.project = project
c.region = region
return c
}
// Filter sets the optional parameter "filter": A filter expression that
// filters resources listed in the response. Most Compute resources
// support two types of filter expressions: expressions that support
// regular expressions and expressions that follow API improvement
// proposal AIP-160. If you want to use AIP-160, your expression must
// specify the field name, an operator, and the value that you want to
// use for filtering. The value must be a string, a number, or a
// boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=`
// or `:`. For example, if you are filtering Compute Engine instances,
// you can exclude instances named `example-instance` by specifying
// `name != example-instance`. The `:` operator can be used with string
// fields to match substrings. For non-string fields it is equivalent to
// the `=` operator. The `:*` comparison can be used to test whether a
// key has been defined. For example, to find all objects with `owner`
// label use: ``` labels.owner:* ``` You can also filter nested fields.
// For example, you could specify `scheduling.automaticRestart = false`
// to include instances only if they are not scheduled for automatic
// restarts. You can use filtering on nested fields to filter based on
// resource labels. To filter on multiple expressions, provide each
// separate expression within parentheses. For example: ```
// (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake")
// ``` By default, each expression is an `AND` expression. However, you
// can include `AND` and `OR` expressions explicitly. For example: ```
// (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell")
// AND (scheduling.automaticRestart = true) ``` If you want to use a
// regular expression, use the `eq` (equal) or `ne` (not equal) operator
// against a single un-parenthesized expression with or without quotes
// or against multiple parenthesized expressions. Examples: `fieldname
// eq unquoted literal` `fieldname eq 'single quoted literal'`
// `fieldname eq "double quoted literal" `(fieldname1 eq literal)
// (fieldname2 ne "literal")` The literal value is interpreted as a
// regular expression using Google RE2 library syntax. The literal value
// must match the entire field. For example, to filter for instances
// that do not end with name "instance", you would use `name ne
// .*instance`.
func (c *RegionZonesListCall) Filter(filter string) *RegionZonesListCall {
c.urlParams_.Set("filter", filter)
return c
}
// MaxResults sets the optional parameter "maxResults": The maximum
// number of results per page that should be returned. If the number of
// available results is larger than `maxResults`, Compute Engine returns
// a `nextPageToken` that can be used to get the next page of results in
// subsequent list requests. Acceptable values are `0` to `500`,
// inclusive. (Default: `500`)
func (c *RegionZonesListCall) MaxResults(maxResults int64) *RegionZonesListCall {
c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
return c
}
// OrderBy sets the optional parameter "orderBy": Sorts list results by
// a certain order. By default, results are returned in alphanumerical
// order based on the resource name. You can also sort results in
// descending order based on the creation timestamp using
// `orderBy="creationTimestamp desc". This sorts results based on the
// `creationTimestamp` field in reverse chronological order (newest
// result first). Use this to sort resources like operations so that the
// newest operation is returned first. Currently, only sorting by `name`
// or `creationTimestamp desc` is supported.
func (c *RegionZonesListCall) OrderBy(orderBy string) *RegionZonesListCall {
c.urlParams_.Set("orderBy", orderBy)
return c
}
// PageToken sets the optional parameter "pageToken": Specifies a page
// token to use. Set `pageToken` to the `nextPageToken` returned by a
// previous list request to get the next page of results.
func (c *RegionZonesListCall) PageToken(pageToken string) *RegionZonesListCall {
c.urlParams_.Set("pageToken", pageToken)
return c
}
// ReturnPartialSuccess sets the optional parameter
// "returnPartialSuccess": Opt-in for partial success behavior which
// provides partial results in case of failure. The default value is
// false.
func (c *RegionZonesListCall) ReturnPartialSuccess(returnPartialSuccess bool) *RegionZonesListCall {
c.urlParams_.Set("returnPartialSuccess", fmt.Sprint(returnPartialSuccess))
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *RegionZonesListCall) Fields(s ...googleapi.Field) *RegionZonesListCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// IfNoneMatch sets the optional parameter which makes the operation
// fail if the object's ETag matches the given value. This is useful for
// getting updates only after the object has changed since the last
// request. Use googleapi.IsNotModified to check whether the response
// error from Do is the result of In-None-Match.
func (c *RegionZonesListCall) IfNoneMatch(entityTag string) *RegionZonesListCall {
c.ifNoneMatch_ = entityTag
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *RegionZonesListCall) Context(ctx context.Context) *RegionZonesListCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *RegionZonesListCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *RegionZonesListCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
if c.ifNoneMatch_ != "" {
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
}
var body io.Reader = nil
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/zones")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("GET", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"project": c.project,
"region": c.region,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "compute.regionZones.list" call.
// Exactly one of *ZoneList or error will be non-nil. Any non-2xx status
// code is an error. Response headers are in either
// *ZoneList.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
func (c *RegionZonesListCall) Do(opts ...googleapi.CallOption) (*ZoneList, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, gensupport.WrapError(&googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
})
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, gensupport.WrapError(err)
}
ret := &ZoneList{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Retrieves the list of Zone resources under the specific region available to the specified project.",
// "flatPath": "projects/{project}/regions/{region}/zones",
// "httpMethod": "GET",
// "id": "compute.regionZones.list",
// "parameterOrder": [
// "project",
// "region"
// ],
// "parameters": {
// "filter": {
// "description": "A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `\u003e`, `\u003c`, `\u003c=`, `\u003e=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = \"Intel Skylake\") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = \"Intel Skylake\") OR (cpuPlatform = \"Intel Broadwell\") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq \"double quoted literal\"` `(fieldname1 eq literal) (fieldname2 ne \"literal\")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name \"instance\", you would use `name ne .*instance`.",
// "location": "query",
// "type": "string"
// },
// "maxResults": {
// "default": "500",
// "description": "The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)",
// "format": "uint32",
// "location": "query",
// "minimum": "0",
// "type": "integer"
// },
// "orderBy": {
// "description": "Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy=\"creationTimestamp desc\"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.",
// "location": "query",
// "type": "string"
// },
// "pageToken": {
// "description": "Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.",
// "location": "query",
// "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"
// },
// "region": {
// "description": "Region for this request.",
// "location": "path",
// "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
// "required": true,
// "type": "string"
// },
// "returnPartialSuccess": {
// "description": "Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.",
// "location": "query",
// "type": "boolean"
// }
// },
// "path": "projects/{project}/regions/{region}/zones",
// "response": {
// "$ref": "ZoneList"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/compute",
// "https://www.googleapis.com/auth/compute.readonly"
// ]
// }
}
// Pages invokes f for each page of results.
// A non-nil error returned from f will halt the iteration.
// The provided context supersedes any context provided to the Context method.
func (c *RegionZonesListCall) Pages(ctx context.Context, f func(*ZoneList) error) error {
c.ctx_ = ctx
defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
for {
x, err := c.Do()
if err != nil {
return err
}
if err := f(x); err != nil {
return err
}
if x.NextPageToken == "" {
return nil
}
c.PageToken(x.NextPageToken)
}
}
// method id "compute.regions.get":
type RegionsGetCall struct {
@ -196655,7 +197193,7 @@ type SecurityPoliciesPatchCall struct {
}
// Patch: Patches the specified policy with the data included in the
// request. To clear fields in the rule, leave the fields empty and
// request. To clear fields in the policy, leave the fields empty and
// specify them in the updateMask. This cannot be used to be update the
// rules in the policy. Please use the per rule methods like addRule,
// patchRule, and removeRule instead.
@ -196785,7 +197323,7 @@ func (c *SecurityPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation
}
return ret, nil
// {
// "description": "Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
// "description": "Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
// "flatPath": "projects/{project}/global/securityPolicies/{securityPolicy}",
// "httpMethod": "PATCH",
// "id": "compute.securityPolicies.patch",
@ -196847,7 +197385,9 @@ type SecurityPoliciesPatchRuleCall struct {
header_ http.Header
}
// PatchRule: Patches a rule at the specified priority.
// PatchRule: Patches a rule at the specified priority. To clear fields
// in the rule, leave the fields empty and specify them in the
// updateMask.
//
// - project: Project ID for this request.
// - securityPolicy: Name of the security policy to update.
@ -196972,7 +197512,7 @@ func (c *SecurityPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Opera
}
return ret, nil
// {
// "description": "Patches a rule at the specified priority.",
// "description": "Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.",
// "flatPath": "projects/{project}/global/securityPolicies/{securityPolicy}/patchRule",
// "httpMethod": "POST",
// "id": "compute.securityPolicies.patchRule",

View File

@ -23681,7 +23681,7 @@
]
},
"patch": {
"description": "Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"description": "Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"flatPath": "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}",
"httpMethod": "PATCH",
"id": "compute.regionSecurityPolicies.patch",
@ -26291,6 +26291,62 @@
"https://www.googleapis.com/auth/compute.readonly"
]
},
"patch": {
"description": "Modify the specified resource policy.",
"flatPath": "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}",
"httpMethod": "PATCH",
"id": "compute.resourcePolicies.patch",
"parameterOrder": [
"project",
"region",
"resourcePolicy"
],
"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": "Name of the region for this request.",
"location": "path",
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
"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. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).",
"location": "query",
"type": "string"
},
"resourcePolicy": {
"description": "Id of the resource policy to patch.",
"location": "path",
"pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}",
"required": true,
"type": "string"
},
"updateMask": {
"description": "update_mask indicates fields to be updated as part of this request.",
"format": "google-fieldmask",
"location": "query",
"type": "string"
}
},
"path": "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}",
"request": {
"$ref": "ResourcePolicy"
},
"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.",
"flatPath": "projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy",
@ -27444,7 +27500,7 @@
]
},
"patch": {
"description": "Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"description": "Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
"flatPath": "projects/{project}/global/securityPolicies/{securityPolicy}",
"httpMethod": "PATCH",
"id": "compute.securityPolicies.patch",
@ -27486,7 +27542,7 @@
]
},
"patchRule": {
"description": "Patches a rule at the specified priority.",
"description": "Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.",
"flatPath": "projects/{project}/global/securityPolicies/{securityPolicy}/patchRule",
"httpMethod": "POST",
"id": "compute.securityPolicies.patchRule",
@ -33732,7 +33788,7 @@
}
}
},
"revision": "20230701",
"revision": "20230711",
"rootUrl": "https://compute.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
@ -36283,7 +36339,7 @@
"type": "string"
},
"customResponseHeaders": {
"description": "Headers that the HTTP/S load balancer should add to proxied responses.",
"description": "Headers that the Application Load Balancer should add to proxied responses.",
"items": {
"type": "string"
},
@ -40368,11 +40424,13 @@
"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",
"ANY_SINGLE_ZONE",
"BALANCED",
"EVEN"
],
"enumDescriptions": [
"The group picks zones for creating VM instances to fulfill the requested number of VMs within present resource constraints and to maximize utilization of unused zonal reservations. Recommended for batch workloads that do not require high availability.",
"The group creates all VM instances within a single zone. The zone is selected based on the present resource constraints and to maximize utilization of unused zonal reservations. Recommended for batch workloads with heavy interprocess communication.",
"The group prioritizes acquisition of resources, scheduling VMs in zones where resources are available while distributing VMs as evenly as possible across selected zones to minimize the impact of zonal failure. Recommended for highly available serving workloads.",
"The group schedules VM instance creation and deletion to achieve and maintain an even number of managed instances across the selected zones. The distribution is even when the number of managed instances does not differ by more than 1 between any two zones. Recommended for highly available serving workloads."
],
@ -46538,14 +46596,14 @@
"type": "string"
},
"type": {
"description": "The type of update process. You can specify either PROACTIVE so that the instance group manager proactively executes actions in order to bring instances to their target versions or OPPORTUNISTIC so that no action is proactively executed but the update will be performed as part of other actions (for example, resizes or recreateInstances calls).",
"description": "The type of update process. You can specify either PROACTIVE so that the MIG automatically updates VMs to the latest configurations or OPPORTUNISTIC so that you can select the VMs that you want to update.",
"enum": [
"OPPORTUNISTIC",
"PROACTIVE"
],
"enumDescriptions": [
"No action is being proactively performed in order to bring this IGM to its target version distribution (regardless of whether this distribution is expressed using instanceTemplate or versions field).",
"This IGM will actively converge to its target version distribution (regardless of whether this distribution is expressed using instanceTemplate or versions field)."
"MIG will apply new configurations to existing VMs only when you selectively target specific or all VMs to be updated.",
"MIG will automatically apply new configurations to all or a subset of existing VMs and also to new VMs that are added to the group."
],
"type": "string"
}
@ -60079,6 +60137,11 @@
"description": "The map holding related quota dimensions.",
"type": "object"
},
"futureLimit": {
"description": "Future quota limit being rolled out. The limit's unit depends on the quota type or metric.",
"format": "double",
"type": "number"
},
"limit": {
"description": "Current effective quota limit. The limit's unit depends on the quota type or metric.",
"format": "double",
@ -60091,6 +60154,18 @@
"metricName": {
"description": "The Compute Engine quota metric name.",
"type": "string"
},
"rolloutStatus": {
"description": "Rollout status of the future quota limit.",
"enum": [
"IN_PROGRESS",
"ROLLOUT_STATUS_UNSPECIFIED"
],
"enumDescriptions": [
"IN_PROGRESS - A rollout is in process which will change the limit value to future limit.",
"ROLLOUT_STATUS_UNSPECIFIED - Rollout status is not specified. The default value."
],
"type": "string"
}
},
"type": "object"
@ -65264,6 +65339,10 @@
],
"type": "string"
},
"localSsdRecoveryTimeout": {
"$ref": "Duration",
"description": "Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour."
},
"locationHint": {
"description": "An opaque location hint used to place the instance close to other resources. This field is for use by internal tools that use the public API.",
"type": "string"
@ -66728,6 +66807,10 @@
"description": "[Output Only] A connection connected to this service attachment.",
"id": "ServiceAttachmentConnectedEndpoint",
"properties": {
"consumerNetwork": {
"description": "The url of the consumer network.",
"type": "string"
},
"endpoint": {
"description": "The url of a connected endpoint.",
"type": "string"

View File

@ -4922,8 +4922,8 @@ type BackendBucket struct {
// format.
CreationTimestamp string `json:"creationTimestamp,omitempty"`
// CustomResponseHeaders: Headers that the HTTP/S load balancer should
// add to proxied responses.
// CustomResponseHeaders: Headers that the Application Load Balancer
// should add to proxied responses.
CustomResponseHeaders []string `json:"customResponseHeaders,omitempty"`
// Description: An optional textual description of the resource;
@ -10928,6 +10928,11 @@ type DistributionPolicy struct {
// the requested number of VMs within present resource constraints and
// to maximize utilization of unused zonal reservations. Recommended for
// batch workloads that do not require high availability.
// "ANY_SINGLE_ZONE" - The group creates all VM instances within a
// single zone. The zone is selected based on the present resource
// constraints and to maximize utilization of unused zonal reservations.
// Recommended for batch workloads with heavy interprocess
// communication.
// "BALANCED" - The group prioritizes acquisition of resources,
// scheduling VMs in zones where resources are available while
// distributing VMs as evenly as possible across selected zones to
@ -19865,20 +19870,16 @@ type InstanceGroupManagerUpdatePolicy struct {
ReplacementMethod string `json:"replacementMethod,omitempty"`
// Type: The type of update process. You can specify either PROACTIVE so
// that the instance group manager proactively executes actions in order
// to bring instances to their target versions or OPPORTUNISTIC so that
// no action is proactively executed but the update will be performed as
// part of other actions (for example, resizes or recreateInstances
// calls).
// that the MIG automatically updates VMs to the latest configurations
// or OPPORTUNISTIC so that you can select the VMs that you want to
// update.
//
// Possible values:
// "OPPORTUNISTIC" - No action is being proactively performed in order
// to bring this IGM to its target version distribution (regardless of
// whether this distribution is expressed using instanceTemplate or
// versions field).
// "PROACTIVE" - This IGM will actively converge to its target version
// distribution (regardless of whether this distribution is expressed
// using instanceTemplate or versions field).
// "OPPORTUNISTIC" - MIG will apply new configurations to existing VMs
// only when you selectively target specific or all VMs to be updated.
// "PROACTIVE" - MIG will automatically apply new configurations to
// all or a subset of existing VMs and also to new VMs that are added to
// the group.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g.
@ -38418,6 +38419,10 @@ type QuotaExceededInfo struct {
// Dimensions: The map holding related quota dimensions.
Dimensions map[string]string `json:"dimensions,omitempty"`
// FutureLimit: Future quota limit being rolled out. The limit's unit
// depends on the quota type or metric.
FutureLimit float64 `json:"futureLimit,omitempty"`
// Limit: Current effective quota limit. The limit's unit depends on the
// quota type or metric.
Limit float64 `json:"limit,omitempty"`
@ -38428,6 +38433,15 @@ type QuotaExceededInfo struct {
// MetricName: The Compute Engine quota metric name.
MetricName string `json:"metricName,omitempty"`
// RolloutStatus: Rollout status of the future quota limit.
//
// Possible values:
// "IN_PROGRESS" - IN_PROGRESS - A rollout is in process which will
// change the limit value to future limit.
// "ROLLOUT_STATUS_UNSPECIFIED" - ROLLOUT_STATUS_UNSPECIFIED - Rollout
// status is not specified. The default value.
RolloutStatus string `json:"rolloutStatus,omitempty"`
// ForceSendFields is a list of field names (e.g. "Dimensions") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
@ -38454,13 +38468,15 @@ func (s *QuotaExceededInfo) MarshalJSON() ([]byte, error) {
func (s *QuotaExceededInfo) UnmarshalJSON(data []byte) error {
type NoMethod QuotaExceededInfo
var s1 struct {
Limit gensupport.JSONFloat64 `json:"limit"`
FutureLimit gensupport.JSONFloat64 `json:"futureLimit"`
Limit gensupport.JSONFloat64 `json:"limit"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.FutureLimit = float64(s1.FutureLimit)
s.Limit = float64(s1.Limit)
return nil
}
@ -45495,6 +45511,12 @@ type Scheduling struct {
// action.
InstanceTerminationAction string `json:"instanceTerminationAction,omitempty"`
// LocalSsdRecoveryTimeout: Specifies the maximum amount of time a Local
// Ssd Vm should wait while recovery of the Local Ssd state is
// attempted. Its value should be in between 0 and 168 hours with hour
// granularity and the default value being 1 hour.
LocalSsdRecoveryTimeout *Duration `json:"localSsdRecoveryTimeout,omitempty"`
// LocationHint: An opaque location hint used to place the instance
// close to other resources. This field is for use by internal tools
// that use the public API.
@ -47719,6 +47741,9 @@ func (s *ServiceAttachmentAggregatedListWarningData) MarshalJSON() ([]byte, erro
// ServiceAttachmentConnectedEndpoint: [Output Only] A connection
// connected to this service attachment.
type ServiceAttachmentConnectedEndpoint struct {
// ConsumerNetwork: The url of the consumer network.
ConsumerNetwork string `json:"consumerNetwork,omitempty"`
// Endpoint: The url of a connected endpoint.
Endpoint string `json:"endpoint,omitempty"`
@ -47740,7 +47765,7 @@ type ServiceAttachmentConnectedEndpoint struct {
// "STATUS_UNSPECIFIED"
Status string `json:"status,omitempty"`
// ForceSendFields is a list of field names (e.g. "Endpoint") to
// ForceSendFields is a list of field names (e.g. "ConsumerNetwork") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
@ -47748,12 +47773,13 @@ type ServiceAttachmentConnectedEndpoint struct {
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Endpoint") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
// NullFields is a list of field names (e.g. "ConsumerNetwork") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
@ -160131,7 +160157,7 @@ type RegionSecurityPoliciesPatchCall struct {
}
// Patch: Patches the specified policy with the data included in the
// request. To clear fields in the rule, leave the fields empty and
// request. To clear fields in the policy, leave the fields empty and
// specify them in the updateMask. This cannot be used to be update the
// rules in the policy. Please use the per rule methods like addRule,
// patchRule, and removeRule instead.
@ -160257,7 +160283,7 @@ func (c *RegionSecurityPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Ope
}
return ret, nil
// {
// "description": "Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
// "description": "Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
// "flatPath": "projects/{project}/regions/{region}/securityPolicies/{securityPolicy}",
// "httpMethod": "PATCH",
// "id": "compute.regionSecurityPolicies.patch",
@ -170756,6 +170782,207 @@ func (c *ResourcePoliciesListCall) Pages(ctx context.Context, f func(*ResourcePo
}
}
// method id "compute.resourcePolicies.patch":
type ResourcePoliciesPatchCall struct {
s *Service
project string
region string
resourcePolicy string
resourcepolicy *ResourcePolicy
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// Patch: Modify the specified resource policy.
//
// - project: Project ID for this request.
// - region: Name of the region for this request.
// - resourcePolicy: Id of the resource policy to patch.
func (r *ResourcePoliciesService) Patch(project string, region string, resourcePolicy string, resourcepolicy *ResourcePolicy) *ResourcePoliciesPatchCall {
c := &ResourcePoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.project = project
c.region = region
c.resourcePolicy = resourcePolicy
c.resourcepolicy = resourcepolicy
return c
}
// RequestId sets the optional parameter "requestId": 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. For example, consider a
// situation where you make an initial request and the request times
// out. If you make the request again with the same request ID, the
// server can check if original operation with the same request ID was
// received, and if so, will ignore the second request. This prevents
// clients from accidentally creating duplicate commitments. The request
// ID must be a valid UUID with the exception that zero UUID is not
// supported ( 00000000-0000-0000-0000-000000000000).
func (c *ResourcePoliciesPatchCall) RequestId(requestId string) *ResourcePoliciesPatchCall {
c.urlParams_.Set("requestId", requestId)
return c
}
// UpdateMask sets the optional parameter "updateMask": update_mask
// indicates fields to be updated as part of this request.
func (c *ResourcePoliciesPatchCall) UpdateMask(updateMask string) *ResourcePoliciesPatchCall {
c.urlParams_.Set("updateMask", updateMask)
return c
}
// Fields allows partial responses to be retrieved. See
// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
// for more information.
func (c *ResourcePoliciesPatchCall) Fields(s ...googleapi.Field) *ResourcePoliciesPatchCall {
c.urlParams_.Set("fields", googleapi.CombineFields(s))
return c
}
// Context sets the context to be used in this call's Do method. Any
// pending HTTP request will be aborted if the provided context is
// canceled.
func (c *ResourcePoliciesPatchCall) Context(ctx context.Context) *ResourcePoliciesPatchCall {
c.ctx_ = ctx
return c
}
// Header returns an http.Header that can be modified by the caller to
// add HTTP headers to the request.
func (c *ResourcePoliciesPatchCall) Header() http.Header {
if c.header_ == nil {
c.header_ = make(http.Header)
}
return c.header_
}
func (c *ResourcePoliciesPatchCall) doRequest(alt string) (*http.Response, error) {
reqHeaders := make(http.Header)
reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version)
for k, v := range c.header_ {
reqHeaders[k] = v
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.resourcepolicy)
if err != nil {
return nil, err
}
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
c.urlParams_.Set("prettyPrint", "false")
urls := googleapi.ResolveRelative(c.s.BasePath, "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}")
urls += "?" + c.urlParams_.Encode()
req, err := http.NewRequest("PATCH", urls, body)
if err != nil {
return nil, err
}
req.Header = reqHeaders
googleapi.Expand(req.URL, map[string]string{
"project": c.project,
"region": c.region,
"resourcePolicy": c.resourcePolicy,
})
return gensupport.SendRequest(c.ctx_, c.s.client, req)
}
// Do executes the "compute.resourcePolicies.patch" call.
// Exactly one of *Operation or error will be non-nil. Any non-2xx
// status code is an error. Response headers are in either
// *Operation.ServerResponse.Header or (if a response was returned at
// all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified
// to check whether the returned error was because
// http.StatusNotModified was returned.
func (c *ResourcePoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
gensupport.SetOptions(c.urlParams_, opts...)
res, err := c.doRequest("json")
if res != nil && res.StatusCode == http.StatusNotModified {
if res.Body != nil {
res.Body.Close()
}
return nil, gensupport.WrapError(&googleapi.Error{
Code: res.StatusCode,
Header: res.Header,
})
}
if err != nil {
return nil, err
}
defer googleapi.CloseBody(res)
if err := googleapi.CheckResponse(res); err != nil {
return nil, gensupport.WrapError(err)
}
ret := &Operation{
ServerResponse: googleapi.ServerResponse{
Header: res.Header,
HTTPStatusCode: res.StatusCode,
},
}
target := &ret
if err := gensupport.DecodeResponse(target, res); err != nil {
return nil, err
}
return ret, nil
// {
// "description": "Modify the specified resource policy.",
// "flatPath": "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}",
// "httpMethod": "PATCH",
// "id": "compute.resourcePolicies.patch",
// "parameterOrder": [
// "project",
// "region",
// "resourcePolicy"
// ],
// "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": "Name of the region for this request.",
// "location": "path",
// "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?",
// "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. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).",
// "location": "query",
// "type": "string"
// },
// "resourcePolicy": {
// "description": "Id of the resource policy to patch.",
// "location": "path",
// "pattern": "[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?|[1-9][0-9]{0,19}",
// "required": true,
// "type": "string"
// },
// "updateMask": {
// "description": "update_mask indicates fields to be updated as part of this request.",
// "format": "google-fieldmask",
// "location": "query",
// "type": "string"
// }
// },
// "path": "projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}",
// "request": {
// "$ref": "ResourcePolicy"
// },
// "response": {
// "$ref": "Operation"
// },
// "scopes": [
// "https://www.googleapis.com/auth/cloud-platform",
// "https://www.googleapis.com/auth/compute"
// ]
// }
}
// method id "compute.resourcePolicies.setIamPolicy":
type ResourcePoliciesSetIamPolicyCall struct {
@ -175722,7 +175949,7 @@ type SecurityPoliciesPatchCall struct {
}
// Patch: Patches the specified policy with the data included in the
// request. To clear fields in the rule, leave the fields empty and
// request. To clear fields in the policy, leave the fields empty and
// specify them in the updateMask. This cannot be used to be update the
// rules in the policy. Please use the per rule methods like addRule,
// patchRule, and removeRule instead.
@ -175845,7 +176072,7 @@ func (c *SecurityPoliciesPatchCall) Do(opts ...googleapi.CallOption) (*Operation
}
return ret, nil
// {
// "description": "Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
// "description": "Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.",
// "flatPath": "projects/{project}/global/securityPolicies/{securityPolicy}",
// "httpMethod": "PATCH",
// "id": "compute.securityPolicies.patch",
@ -175901,7 +176128,9 @@ type SecurityPoliciesPatchRuleCall struct {
header_ http.Header
}
// PatchRule: Patches a rule at the specified priority.
// PatchRule: Patches a rule at the specified priority. To clear fields
// in the rule, leave the fields empty and specify them in the
// updateMask.
//
// - project: Project ID for this request.
// - securityPolicy: Name of the security policy to update.
@ -176019,7 +176248,7 @@ func (c *SecurityPoliciesPatchRuleCall) Do(opts ...googleapi.CallOption) (*Opera
}
return ret, nil
// {
// "description": "Patches a rule at the specified priority.",
// "description": "Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.",
// "flatPath": "projects/{project}/global/securityPolicies/{securityPolicy}/patchRule",
// "httpMethod": "POST",
// "id": "compute.securityPolicies.patchRule",

View File

@ -2540,7 +2540,7 @@
}
}
},
"revision": "20230626",
"revision": "20230629",
"rootUrl": "https://container.googleapis.com/",
"schemas": {
"AcceleratorConfig": {
@ -2571,6 +2571,40 @@
},
"type": "object"
},
"AdditionalNodeNetworkConfig": {
"description": "AdditionalNodeNetworkConfig is the configuration for additional node networks within the NodeNetworkConfig message",
"id": "AdditionalNodeNetworkConfig",
"properties": {
"network": {
"description": "Name of the VPC where the additional interface belongs",
"type": "string"
},
"subnetwork": {
"description": "Name of the subnetwork where the additional interface belongs",
"type": "string"
}
},
"type": "object"
},
"AdditionalPodNetworkConfig": {
"description": "AdditionalPodNetworkConfig is the configuration for additional pod networks within the NodeNetworkConfig message",
"id": "AdditionalPodNetworkConfig",
"properties": {
"maxPodsPerNode": {
"$ref": "MaxPodsConstraint",
"description": "The maximum number of pods per node which use this pod network"
},
"secondaryPodRange": {
"description": "The name of the secondary range on the subnet which provides IP address for this pod range",
"type": "string"
},
"subnetwork": {
"description": "Name of the subnetwork where the additional pod network belongs",
"type": "string"
}
},
"type": "object"
},
"AdditionalPodRangesConfig": {
"description": "AdditionalPodRangesConfig is the configuration for additional pod secondary ranges supporting the ClusterUpdate message.",
"id": "AdditionalPodRangesConfig",
@ -4845,6 +4879,10 @@
"description": "Whether L4ILB Subsetting is enabled for this cluster.",
"type": "boolean"
},
"enableMultiNetworking": {
"description": "Whether multi-networking is enabled for this cluster.",
"type": "boolean"
},
"gatewayApiConfig": {
"$ref": "GatewayAPIConfig",
"description": "GatewayAPIConfig contains the desired config of Gateway API on this cluster."
@ -5229,6 +5267,20 @@
"description": "Parameters for node pool-level network config.",
"id": "NodeNetworkConfig",
"properties": {
"additionalNodeNetworkConfigs": {
"description": "We specify the additional node networks for this node pool using this list. Each node network corresponds to an additional interface",
"items": {
"$ref": "AdditionalNodeNetworkConfig"
},
"type": "array"
},
"additionalPodNetworkConfigs": {
"description": "We specify the additional pod networks for this node pool using this list. Each pod network corresponds to an additional alias IP range for the node",
"items": {
"$ref": "AdditionalPodNetworkConfig"
},
"type": "array"
},
"createPodRange": {
"description": "Input only. Whether to create a new range for pod IPs in this node pool. Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they are not specified. If neither `create_pod_range` or `pod_range` are specified, the cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is used. Only applicable if `ip_allocation_policy.use_ip_aliases` is true. This field cannot be changed after the node pool has been created.",
"type": "boolean"
@ -5693,6 +5745,10 @@
"description": "PlacementPolicy defines the placement policy used by the node pool.",
"id": "PlacementPolicy",
"properties": {
"policyName": {
"description": "If set, refers to the name of a custom resource policy supplied by the user. The resource policy must be in the same project and region as the node pool. If not found, InvalidArgument error is returned.",
"type": "string"
},
"type": {
"description": "The type of placement.",
"enum": [

View File

@ -327,6 +327,80 @@ func (s *AcceleratorConfig) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AdditionalNodeNetworkConfig: AdditionalNodeNetworkConfig is the
// configuration for additional node networks within the
// NodeNetworkConfig message
type AdditionalNodeNetworkConfig struct {
// Network: Name of the VPC where the additional interface belongs
Network string `json:"network,omitempty"`
// Subnetwork: Name of the subnetwork where the additional interface
// belongs
Subnetwork string `json:"subnetwork,omitempty"`
// ForceSendFields is a list of field names (e.g. "Network") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Network") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AdditionalNodeNetworkConfig) MarshalJSON() ([]byte, error) {
type NoMethod AdditionalNodeNetworkConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AdditionalPodNetworkConfig: AdditionalPodNetworkConfig is the
// configuration for additional pod networks within the
// NodeNetworkConfig message
type AdditionalPodNetworkConfig struct {
// MaxPodsPerNode: The maximum number of pods per node which use this
// pod network
MaxPodsPerNode *MaxPodsConstraint `json:"maxPodsPerNode,omitempty"`
// SecondaryPodRange: The name of the secondary range on the subnet
// which provides IP address for this pod range
SecondaryPodRange string `json:"secondaryPodRange,omitempty"`
// Subnetwork: Name of the subnetwork where the additional pod network
// belongs
Subnetwork string `json:"subnetwork,omitempty"`
// ForceSendFields is a list of field names (e.g. "MaxPodsPerNode") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "MaxPodsPerNode") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AdditionalPodNetworkConfig) MarshalJSON() ([]byte, error) {
type NoMethod AdditionalPodNetworkConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AdditionalPodRangesConfig: AdditionalPodRangesConfig is the
// configuration for additional pod secondary ranges supporting the
// ClusterUpdate message.
@ -4196,6 +4270,10 @@ type NetworkConfig struct {
// cluster.
EnableL4ilbSubsetting bool `json:"enableL4ilbSubsetting,omitempty"`
// EnableMultiNetworking: Whether multi-networking is enabled for this
// cluster.
EnableMultiNetworking bool `json:"enableMultiNetworking,omitempty"`
// GatewayApiConfig: GatewayAPIConfig contains the desired config of
// Gateway API on this cluster.
GatewayApiConfig *GatewayAPIConfig `json:"gatewayApiConfig,omitempty"`
@ -4808,6 +4886,16 @@ func (s *NodeManagement) MarshalJSON() ([]byte, error) {
// NodeNetworkConfig: Parameters for node pool-level network config.
type NodeNetworkConfig struct {
// AdditionalNodeNetworkConfigs: We specify the additional node networks
// for this node pool using this list. Each node network corresponds to
// an additional interface
AdditionalNodeNetworkConfigs []*AdditionalNodeNetworkConfig `json:"additionalNodeNetworkConfigs,omitempty"`
// AdditionalPodNetworkConfigs: We specify the additional pod networks
// for this node pool using this list. Each pod network corresponds to
// an additional alias IP range for the node
AdditionalPodNetworkConfigs []*AdditionalPodNetworkConfig `json:"additionalPodNetworkConfigs,omitempty"`
// CreatePodRange: Input only. Whether to create a new range for pod IPs
// in this node pool. Defaults are provided for `pod_range` and
// `pod_ipv4_cidr_block` if they are not specified. If neither
@ -4859,21 +4947,22 @@ type NodeNetworkConfig struct {
// created.
PodRange string `json:"podRange,omitempty"`
// ForceSendFields is a list of field names (e.g. "CreatePodRange") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
// sent to the server regardless of whether the field is empty or not.
// This may be used to include empty fields in Patch requests.
// ForceSendFields is a list of field names (e.g.
// "AdditionalNodeNetworkConfigs") to unconditionally include in API
// requests. By default, fields with empty or default values are omitted
// from API requests. However, any non-pointer, non-interface field
// appearing in ForceSendFields will be sent to the server regardless of
// whether the field is empty or not. This may be used to include empty
// fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreatePodRange") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
// NullFields is a list of field names (e.g.
// "AdditionalNodeNetworkConfigs") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
@ -5537,6 +5626,12 @@ func (s *OperationProgress) MarshalJSON() ([]byte, error) {
// PlacementPolicy: PlacementPolicy defines the placement policy used by
// the node pool.
type PlacementPolicy struct {
// PolicyName: If set, refers to the name of a custom resource policy
// supplied by the user. The resource policy must be in the same project
// and region as the node pool. If not found, InvalidArgument error is
// returned.
PolicyName string `json:"policyName,omitempty"`
// Type: The type of placement.
//
// Possible values:
@ -5546,7 +5641,7 @@ type PlacementPolicy struct {
// availability domain to ensure low communication latency.
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "Type") to
// ForceSendFields is a list of field names (e.g. "PolicyName") to
// unconditionally include in API requests. By default, fields with
// empty or default values are omitted from API requests. However, any
// non-pointer, non-interface field appearing in ForceSendFields will be
@ -5554,8 +5649,8 @@ type PlacementPolicy struct {
// This may be used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Type") to include in API
// requests with the JSON null value. By default, fields with empty
// NullFields is a list of field names (e.g. "PolicyName") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.

View File

@ -1824,7 +1824,7 @@
}
}
},
"revision": "20230330",
"revision": "20230712",
"rootUrl": "https://dns.googleapis.com/",
"schemas": {
"Change": {
@ -3133,9 +3133,11 @@
"description": "The type of Load Balancer specified by this target. Must match the configuration of the Load Balancer located at the LoadBalancerTarget's IP address/port and region.",
"enum": [
"none",
"regionalL4ilb"
"regionalL4ilb",
"regionalL7ilb"
],
"enumDescriptions": [
"",
"",
""
],

View File

@ -2511,6 +2511,7 @@ type RRSetRoutingPolicyLoadBalancerTarget struct {
// Possible values:
// "none"
// "regionalL4ilb"
// "regionalL7ilb"
LoadBalancerType string `json:"loadBalancerType,omitempty"`
// NetworkUrl: The fully qualified url of the network on which the ILB

View File

@ -2883,7 +2883,7 @@
}
}
},
"revision": "20230622",
"revision": "20230710",
"rootUrl": "https://iam.googleapis.com/",
"schemas": {
"AdminAuditData": {
@ -3244,13 +3244,13 @@
],
"enumDescriptions": [
"No assertion claims behavior specified.",
"Merge the UserInfo Endpoint Claims with ID Token Claims, preferring UserInfo Claim Values for the same Claim Name. Only possible for flows granting an Access Token, which comprise only the Authorization Code Flow at the moment.",
"Merge the UserInfo Endpoint Claims with ID Token Claims, preferring UserInfo Claim Values for the same Claim Name. This option is available only for the Authorization Code Flow.",
"Only include ID Token Claims."
],
"type": "string"
},
"responseType": {
"description": "Required. The Response Type to request for in the OIDC Authorization Request for web sign-in.",
"description": "Required. The Response Type to request for in the OIDC Authorization Request for web sign-in. The `CODE` Response Type is recommended to avoid the Implicit Flow, for security reasons.",
"enum": [
"RESPONSE_TYPE_UNSPECIFIED",
"CODE",
@ -3675,6 +3675,7 @@
"type": "string"
},
"onlyInPredefinedRoles": {
"deprecated": true,
"type": "boolean"
},
"primaryPermission": {
@ -3971,6 +3972,7 @@
"type": "string"
},
"etag": {
"deprecated": true,
"description": "Deprecated. Do not use.",
"format": "byte",
"type": "string"
@ -4109,6 +4111,7 @@
"id": "SignBlobRequest",
"properties": {
"bytesToSign": {
"deprecated": true,
"description": "Required. Deprecated. [Migrate to Service Account Credentials API](https://cloud.google.com/iam/help/credentials/migrate-api). The bytes to sign.",
"format": "byte",
"type": "string"
@ -4121,10 +4124,12 @@
"id": "SignBlobResponse",
"properties": {
"keyId": {
"deprecated": true,
"description": "Deprecated. [Migrate to Service Account Credentials API](https://cloud.google.com/iam/help/credentials/migrate-api). The id of the key used to sign the blob.",
"type": "string"
},
"signature": {
"deprecated": true,
"description": "Deprecated. [Migrate to Service Account Credentials API](https://cloud.google.com/iam/help/credentials/migrate-api). The signed blob.",
"format": "byte",
"type": "string"
@ -4137,6 +4142,7 @@
"id": "SignJwtRequest",
"properties": {
"payload": {
"deprecated": true,
"description": "Required. Deprecated. [Migrate to Service Account Credentials API](https://cloud.google.com/iam/help/credentials/migrate-api). The JWT payload to sign. Must be a serialized JSON object that contains a JWT Claims Set. For example: `{\"sub\": \"user@example.com\", \"iat\": 313435}` If the JWT Claims Set contains an expiration time (`exp`) claim, it must be an integer timestamp that is not in the past and no more than 12 hours in the future. If the JWT Claims Set does not contain an expiration time (`exp`) claim, this claim is added automatically, with a timestamp that is 1 hour in the future.",
"type": "string"
}
@ -4148,10 +4154,12 @@
"id": "SignJwtResponse",
"properties": {
"keyId": {
"deprecated": true,
"description": "Deprecated. [Migrate to Service Account Credentials API](https://cloud.google.com/iam/help/credentials/migrate-api). The id of the key used to sign the JWT.",
"type": "string"
},
"signedJwt": {
"deprecated": true,
"description": "Deprecated. [Migrate to Service Account Credentials API](https://cloud.google.com/iam/help/credentials/migrate-api). The signed JWT.",
"type": "string"
}
@ -4311,6 +4319,12 @@
"description": "A user-specified display name of the pool in Google Cloud Console. Cannot exceed 32 characters.",
"type": "string"
},
"expireTime": {
"description": "Output only. Time after which the workforce pool will be permanently purged and cannot be recovered.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"name": {
"description": "Output only. The resource name of the pool. Format: `locations/{location}/workforcePools/{workforce_pool_id}`",
"readOnly": true,
@ -4370,6 +4384,12 @@
"description": "A user-specified display name for the provider. Cannot exceed 32 characters.",
"type": "string"
},
"expireTime": {
"description": "Output only. Time after which the workload pool provider will be permanently purged and cannot be recovered.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"name": {
"description": "Output only. The resource name of the provider. Format: `locations/{location}/workforcePools/{workforce_pool_id}/providers/{provider_id}`",
"readOnly": true,
@ -4466,18 +4486,10 @@
"description": "A display name for the pool. Cannot exceed 32 characters.",
"type": "string"
},
"identityMode": {
"description": "Immutable. The identity mode of the pool.",
"enum": [
"IDENTITY_MODE_UNSPECIFIED",
"FEDERATION_ONLY",
"TRUST_DOMAIN"
],
"enumDescriptions": [
"Existing pools will be in this mode. For existing worklod identity pools created through the public API, they will act as if they are set to FEDERATION_ONLY.",
"With FEDERATION_ONLY mode, providers can be created at the root level within the pool. Attribute mappings must specify a \"google.subject\" claim that specifies the identity of the federation workload. Namespace or any sub-namespace resources is not allowed with this mode.",
"With TRUST_DOMAIN mode, providers can be created at the root level within the pool. Attribute mappings must specify the \"google.namespace\" and \"google.workload_identifier\" claims that, respectively, specify the namespace and individual sub-namespace identifier for the workload. Namespaces and sub-Namespace resources are allowed."
],
"expireTime": {
"description": "Output only. Time after which the workload identity pool will be permanently purged and cannot be recovered.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"name": {
@ -4540,6 +4552,12 @@
"description": "A display name for the provider. Cannot exceed 32 characters.",
"type": "string"
},
"expireTime": {
"description": "Output only. Time after which the workload identity pool provider will be permanently purged and cannot be recovered.",
"format": "google-datetime",
"readOnly": true,
"type": "string"
},
"name": {
"description": "Output only. The resource name of the provider.",
"readOnly": true,

View File

@ -1277,14 +1277,14 @@ type GoogleIamAdminV1WorkforcePoolProviderOidcWebSsoConfig struct {
// behavior specified.
// "MERGE_USER_INFO_OVER_ID_TOKEN_CLAIMS" - Merge the UserInfo
// Endpoint Claims with ID Token Claims, preferring UserInfo Claim
// Values for the same Claim Name. Only possible for flows granting an
// Access Token, which comprise only the Authorization Code Flow at the
// moment.
// Values for the same Claim Name. This option is available only for the
// Authorization Code Flow.
// "ONLY_ID_TOKEN_CLAIMS" - Only include ID Token Claims.
AssertionClaimsBehavior string `json:"assertionClaimsBehavior,omitempty"`
// ResponseType: Required. The Response Type to request for in the OIDC
// Authorization Request for web sign-in.
// Authorization Request for web sign-in. The `CODE` Response Type is
// recommended to avoid the Implicit Flow, for security reasons.
//
// Possible values:
// "RESPONSE_TYPE_UNSPECIFIED" - No Response Type specified.
@ -3287,6 +3287,10 @@ type WorkforcePool struct {
// Cloud Console. Cannot exceed 32 characters.
DisplayName string `json:"displayName,omitempty"`
// ExpireTime: Output only. Time after which the workforce pool will be
// permanently purged and cannot be recovered.
ExpireTime string `json:"expireTime,omitempty"`
// Name: Output only. The resource name of the pool. Format:
// `locations/{location}/workforcePools/{workforce_pool_id}`
Name string `json:"name,omitempty"`
@ -3428,6 +3432,10 @@ type WorkforcePoolProvider struct {
// exceed 32 characters.
DisplayName string `json:"displayName,omitempty"`
// ExpireTime: Output only. Time after which the workload pool provider
// will be permanently purged and cannot be recovered.
ExpireTime string `json:"expireTime,omitempty"`
// Name: Output only. The resource name of the provider. Format:
// `locations/{location}/workforcePools/{workforce_pool_id}/providers/{pr
// ovider_id}`
@ -3555,24 +3563,9 @@ type WorkloadIdentityPool struct {
// characters.
DisplayName string `json:"displayName,omitempty"`
// IdentityMode: Immutable. The identity mode of the pool.
//
// Possible values:
// "IDENTITY_MODE_UNSPECIFIED" - Existing pools will be in this mode.
// For existing worklod identity pools created through the public API,
// they will act as if they are set to FEDERATION_ONLY.
// "FEDERATION_ONLY" - With FEDERATION_ONLY mode, providers can be
// created at the root level within the pool. Attribute mappings must
// specify a "google.subject" claim that specifies the identity of the
// federation workload. Namespace or any sub-namespace resources is not
// allowed with this mode.
// "TRUST_DOMAIN" - With TRUST_DOMAIN mode, providers can be created
// at the root level within the pool. Attribute mappings must specify
// the "google.namespace" and "google.workload_identifier" claims that,
// respectively, specify the namespace and individual sub-namespace
// identifier for the workload. Namespaces and sub-Namespace resources
// are allowed.
IdentityMode string `json:"identityMode,omitempty"`
// ExpireTime: Output only. Time after which the workload identity pool
// will be permanently purged and cannot be recovered.
ExpireTime string `json:"expireTime,omitempty"`
// Name: Output only. The resource name of the pool.
Name string `json:"name,omitempty"`
@ -3706,6 +3699,10 @@ type WorkloadIdentityPoolProvider struct {
// characters.
DisplayName string `json:"displayName,omitempty"`
// ExpireTime: Output only. Time after which the workload identity pool
// provider will be permanently purged and cannot be recovered.
ExpireTime string `json:"expireTime,omitempty"`
// Name: Output only. The resource name of the provider.
Name string `json:"name,omitempty"`

View File

@ -5,4 +5,4 @@
package internal
// Version is the current tagged release of the library.
const Version = "0.131.0"
const Version = "0.132.0"

View File

@ -26,7 +26,7 @@
"description": "Stores and retrieves potentially large, immutable data objects.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/storage/docs/json_api/",
"etag": "\"383236363234373537353532383237373333\"",
"etag": "\"39353535313838393033333032363632303533\"",
"icons": {
"x16": "https://www.google.com/images/icons/product/cloud_storage-16.png",
"x32": "https://www.google.com/images/icons/product/cloud_storage-32.png"
@ -1311,7 +1311,7 @@
"type": "string"
},
"object": {
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -1357,7 +1357,7 @@
"type": "string"
},
"object": {
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -1399,7 +1399,7 @@
"type": "string"
},
"object": {
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -1444,7 +1444,7 @@
"type": "string"
},
"object": {
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -1493,7 +1493,7 @@
"type": "string"
},
"object": {
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -1545,7 +1545,7 @@
"type": "string"
},
"object": {
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -1588,7 +1588,7 @@
"type": "string"
},
"destinationObject": {
"description": "Name of the new object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "Name of the new object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -1662,7 +1662,7 @@
],
"parameters": {
"destinationBucket": {
"description": "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](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "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](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -1773,7 +1773,7 @@
"type": "string"
},
"sourceObject": {
"description": "Name of the source object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "Name of the source object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -1843,7 +1843,7 @@
"type": "string"
},
"object": {
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -1907,7 +1907,7 @@
"type": "string"
},
"object": {
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -1967,7 +1967,7 @@
"type": "string"
},
"object": {
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -2054,7 +2054,7 @@
"type": "string"
},
"name": {
"description": "Name of the 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](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "Name of the 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](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "query",
"type": "string"
},
@ -2252,7 +2252,7 @@
"type": "string"
},
"object": {
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -2332,7 +2332,7 @@
"type": "string"
},
"destinationObject": {
"description": "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](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "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](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -2443,7 +2443,7 @@
"type": "string"
},
"sourceObject": {
"description": "Name of the source object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "Name of the source object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -2489,7 +2489,7 @@
"type": "string"
},
"object": {
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -2536,7 +2536,7 @@
"type": "string"
},
"object": {
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -2612,7 +2612,7 @@
"type": "string"
},
"object": {
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
"description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
"location": "path",
"required": true,
"type": "string"
@ -3010,7 +3010,7 @@
}
}
},
"revision": "20230617",
"revision": "20230710",
"rootUrl": "https://storage.googleapis.com/",
"schemas": {
"Bucket": {

View File

@ -7261,7 +7261,7 @@ type ObjectAccessControlsDeleteCall struct {
// allAuthenticatedUsers.
// - object: Name of the object. For information about how to URL encode
// object names to be path safe, see Encoding URI Path Parts
// (http://cloud/storage/docs/request-endpoints#encoding).
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
func (r *ObjectAccessControlsService) Delete(bucket string, object string, entity string) *ObjectAccessControlsDeleteCall {
c := &ObjectAccessControlsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.bucket = bucket
@ -7376,7 +7376,7 @@ func (c *ObjectAccessControlsDeleteCall) Do(opts ...googleapi.CallOption) error
// "type": "string"
// },
// "object": {
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"
@ -7418,7 +7418,7 @@ type ObjectAccessControlsGetCall struct {
// allAuthenticatedUsers.
// - object: Name of the object. For information about how to URL encode
// object names to be path safe, see Encoding URI Path Parts
// (http://cloud/storage/docs/request-endpoints#encoding).
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
func (r *ObjectAccessControlsService) Get(bucket string, object string, entity string) *ObjectAccessControlsGetCall {
c := &ObjectAccessControlsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.bucket = bucket
@ -7571,7 +7571,7 @@ func (c *ObjectAccessControlsGetCall) Do(opts ...googleapi.CallOption) (*ObjectA
// "type": "string"
// },
// "object": {
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"
@ -7611,7 +7611,7 @@ type ObjectAccessControlsInsertCall struct {
// - 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
// (http://cloud/storage/docs/request-endpoints#encoding).
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
func (r *ObjectAccessControlsService) Insert(bucket string, object string, objectaccesscontrol *ObjectAccessControl) *ObjectAccessControlsInsertCall {
c := &ObjectAccessControlsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.bucket = bucket
@ -7748,7 +7748,7 @@ func (c *ObjectAccessControlsInsertCall) Do(opts ...googleapi.CallOption) (*Obje
// "type": "string"
// },
// "object": {
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"
@ -7791,7 +7791,7 @@ type ObjectAccessControlsListCall struct {
// - 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
// (http://cloud/storage/docs/request-endpoints#encoding).
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
func (r *ObjectAccessControlsService) List(bucket string, object string) *ObjectAccessControlsListCall {
c := &ObjectAccessControlsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.bucket = bucket
@ -7935,7 +7935,7 @@ func (c *ObjectAccessControlsListCall) Do(opts ...googleapi.CallOption) (*Object
// "type": "string"
// },
// "object": {
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"
@ -7979,7 +7979,7 @@ type ObjectAccessControlsPatchCall struct {
// allAuthenticatedUsers.
// - object: Name of the object. For information about how to URL encode
// object names to be path safe, see Encoding URI Path Parts
// (http://cloud/storage/docs/request-endpoints#encoding).
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
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
@ -8125,7 +8125,7 @@ func (c *ObjectAccessControlsPatchCall) Do(opts ...googleapi.CallOption) (*Objec
// "type": "string"
// },
// "object": {
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"
@ -8172,7 +8172,7 @@ type ObjectAccessControlsUpdateCall struct {
// allAuthenticatedUsers.
// - object: Name of the object. For information about how to URL encode
// object names to be path safe, see Encoding URI Path Parts
// (http://cloud/storage/docs/request-endpoints#encoding).
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
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
@ -8318,7 +8318,7 @@ func (c *ObjectAccessControlsUpdateCall) Do(opts ...googleapi.CallOption) (*Obje
// "type": "string"
// },
// "object": {
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"
@ -8363,7 +8363,8 @@ type ObjectsComposeCall struct {
// 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 (http://cloud/storage/docs/request-endpoints#encoding).
// Path Parts
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
func (r *ObjectsService) Compose(destinationBucket string, destinationObject string, composerequest *ComposeRequest) *ObjectsComposeCall {
c := &ObjectsComposeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.destinationBucket = destinationBucket
@ -8546,7 +8547,7 @@ func (c *ObjectsComposeCall) Do(opts ...googleapi.CallOption) (*Object, error) {
// "type": "string"
// },
// "destinationObject": {
// "description": "Name of the new object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "Name of the new object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"
@ -8632,7 +8633,7 @@ type ObjectsCopyCall struct {
// 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
// (http://cloud/storage/docs/request-endpoints#encoding).
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
// - destinationObject: Name of the new object. Required when the object
// metadata is not otherwise provided. Overrides the object metadata's
// name value, if any.
@ -8640,7 +8641,8 @@ type ObjectsCopyCall struct {
// 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 (http://cloud/storage/docs/request-endpoints#encoding).
// Parts
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
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
@ -8901,7 +8903,7 @@ func (c *ObjectsCopyCall) Do(opts ...googleapi.CallOption) (*Object, error) {
// ],
// "parameters": {
// "destinationBucket": {
// "description": "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](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "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](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"
@ -9012,7 +9014,7 @@ func (c *ObjectsCopyCall) Do(opts ...googleapi.CallOption) (*Object, error) {
// "type": "string"
// },
// "sourceObject": {
// "description": "Name of the source object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "Name of the source object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"
@ -9057,7 +9059,7 @@ type ObjectsDeleteCall struct {
// - 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
// (http://cloud/storage/docs/request-endpoints#encoding).
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
func (r *ObjectsService) Delete(bucket string, object string) *ObjectsDeleteCall {
c := &ObjectsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.bucket = bucket
@ -9223,7 +9225,7 @@ func (c *ObjectsDeleteCall) Do(opts ...googleapi.CallOption) error {
// "type": "string"
// },
// "object": {
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"
@ -9261,7 +9263,7 @@ type ObjectsGetCall struct {
// - 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
// (http://cloud/storage/docs/request-endpoints#encoding).
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
func (r *ObjectsService) Get(bucket string, object string) *ObjectsGetCall {
c := &ObjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.bucket = bucket
@ -9493,7 +9495,7 @@ func (c *ObjectsGetCall) Do(opts ...googleapi.CallOption) (*Object, error) {
// "type": "string"
// },
// "object": {
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"
@ -9551,7 +9553,7 @@ type ObjectsGetIamPolicyCall struct {
// - 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
// (http://cloud/storage/docs/request-endpoints#encoding).
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
func (r *ObjectsService) GetIamPolicy(bucket string, object string) *ObjectsGetIamPolicyCall {
c := &ObjectsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.bucket = bucket
@ -9695,7 +9697,7 @@ func (c *ObjectsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, err
// "type": "string"
// },
// "object": {
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"
@ -9808,7 +9810,7 @@ func (c *ObjectsInsertCall) KmsKeyName(kmsKeyName string) *ObjectsInsertCall {
// 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
// (http://cloud/storage/docs/request-endpoints#encoding).
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
func (c *ObjectsInsertCall) Name(name string) *ObjectsInsertCall {
c.urlParams_.Set("name", name)
return c
@ -10118,7 +10120,7 @@ func (c *ObjectsInsertCall) Do(opts ...googleapi.CallOption) (*Object, error) {
// "type": "string"
// },
// "name": {
// "description": "Name of the 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](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "Name of the 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](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "query",
// "type": "string"
// },
@ -10529,7 +10531,7 @@ type ObjectsPatchCall struct {
// - 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
// (http://cloud/storage/docs/request-endpoints#encoding).
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
func (r *ObjectsService) Patch(bucket string, object string, object2 *Object) *ObjectsPatchCall {
c := &ObjectsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.bucket = bucket
@ -10768,7 +10770,7 @@ func (c *ObjectsPatchCall) Do(opts ...googleapi.CallOption) (*Object, error) {
// "type": "string"
// },
// "object": {
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"
@ -10852,12 +10854,13 @@ type ObjectsRewriteCall struct {
// 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
// (http://cloud/storage/docs/request-endpoints#encoding).
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
// - 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 (http://cloud/storage/docs/request-endpoints#encoding).
// Parts
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
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
@ -11153,7 +11156,7 @@ func (c *ObjectsRewriteCall) Do(opts ...googleapi.CallOption) (*RewriteResponse,
// "type": "string"
// },
// "destinationObject": {
// "description": "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](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "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](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"
@ -11264,7 +11267,7 @@ func (c *ObjectsRewriteCall) Do(opts ...googleapi.CallOption) (*RewriteResponse,
// "type": "string"
// },
// "sourceObject": {
// "description": "Name of the source object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "Name of the source object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"
@ -11308,7 +11311,7 @@ type ObjectsSetIamPolicyCall struct {
// - 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
// (http://cloud/storage/docs/request-endpoints#encoding).
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
func (r *ObjectsService) SetIamPolicy(bucket string, object string, policy *Policy) *ObjectsSetIamPolicyCall {
c := &ObjectsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.bucket = bucket
@ -11445,7 +11448,7 @@ func (c *ObjectsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, err
// "type": "string"
// },
// "object": {
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"
@ -11490,7 +11493,7 @@ type ObjectsTestIamPermissionsCall struct {
// - 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
// (http://cloud/storage/docs/request-endpoints#encoding).
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
// - permissions: Permissions to test.
func (r *ObjectsService) TestIamPermissions(bucket string, object string, permissions []string) *ObjectsTestIamPermissionsCall {
c := &ObjectsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
@ -11637,7 +11640,7 @@ func (c *ObjectsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestI
// "type": "string"
// },
// "object": {
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"
@ -11687,7 +11690,7 @@ type ObjectsUpdateCall struct {
// - 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
// (http://cloud/storage/docs/request-endpoints#encoding).
// (https://cloud.google.com/storage/docs/request-endpoints#encoding).
func (r *ObjectsService) Update(bucket string, object string, object2 *Object) *ObjectsUpdateCall {
c := &ObjectsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.bucket = bucket
@ -11926,7 +11929,7 @@ func (c *ObjectsUpdateCall) Do(opts ...googleapi.CallOption) (*Object, error) {
// "type": "string"
// },
// "object": {
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](http://cloud/storage/docs/request-endpoints#encoding).",
// "description": "Name of the object. For information about how to URL encode object names to be path safe, see [Encoding URI Path Parts](https://cloud.google.com/storage/docs/request-endpoints#encoding).",
// "location": "path",
// "required": true,
// "type": "string"

View File

@ -231,7 +231,7 @@ func (c *fromUnstructuredContext) pushKey(key string) {
}
// FromUnstructuredWIthValidation converts an object from map[string]interface{} representation into a concrete type.
// FromUnstructuredWithValidation converts an object from map[string]interface{} representation into a concrete type.
// It uses encoding/json/Unmarshaler if object implements it or reflection if not.
// It takes a validationDirective that indicates how to behave when it encounters unknown fields.
func (c *unstructuredConverter) FromUnstructuredWithValidation(u map[string]interface{}, obj interface{}, returnUnknownFields bool) error {
@ -465,7 +465,7 @@ func sliceFromUnstructured(sv, dv reflect.Value, ctx *fromUnstructuredContext) e
}
dv.SetBytes(data)
} else {
dv.Set(reflect.Zero(dt))
dv.Set(reflect.MakeSlice(dt, 0, 0))
}
return nil
}

View File

@ -27,9 +27,11 @@ import (
// the provided timer until the provided context is cancelled, the condition returns
// true, or the condition returns an error. If sliding is true, the period is computed
// after condition runs. If it is false then period includes the runtime for condition.
// If immediate is false the first delay happens before any call to condition. The
// returned error is the error returned by the last condition or the context error if
// the context was terminated.
// If immediate is false the first delay happens before any call to condition, if
// immediate is true the condition will be invoked before waiting and guarantees that
// the condition is invoked at least once, regardless of whether the context has been
// cancelled. The returned error is the error returned by the last condition or the
// context error if the context was terminated.
//
// This is the common loop construct for all polling in the wait package.
func loopConditionUntilContext(ctx context.Context, t Timer, immediate, sliding bool, condition ConditionWithContextFunc) error {
@ -38,8 +40,17 @@ func loopConditionUntilContext(ctx context.Context, t Timer, immediate, sliding
var timeCh <-chan time.Time
doneCh := ctx.Done()
// if immediate is true the condition is
// guaranteed to be executed at least once,
// if we haven't requested immediate execution, delay once
if !immediate {
if immediate {
if ok, err := func() (bool, error) {
defer runtime.HandleCrash()
return condition(ctx)
}(); err != nil || ok {
return err
}
} else {
timeCh = t.C()
select {
case <-doneCh:

View File

@ -25,6 +25,7 @@ import (
"crypto/x509/pkix"
"encoding/pem"
"fmt"
"math"
"math/big"
"net"
"os"
@ -57,8 +58,14 @@ type AltNames struct {
// NewSelfSignedCACert creates a CA certificate
func NewSelfSignedCACert(cfg Config, key crypto.Signer) (*x509.Certificate, error) {
now := time.Now()
// returns a uniform random value in [0, max-1), then add 1 to serial to make it a uniform random value in [1, max).
serial, err := cryptorand.Int(cryptorand.Reader, new(big.Int).SetInt64(math.MaxInt64-1))
if err != nil {
return nil, err
}
serial = new(big.Int).Add(serial, big.NewInt(1))
tmpl := x509.Certificate{
SerialNumber: new(big.Int).SetInt64(0),
SerialNumber: serial,
Subject: pkix.Name{
CommonName: cfg.CommonName,
Organization: cfg.Organization,
@ -116,9 +123,14 @@ func GenerateSelfSignedCertKeyWithFixtures(host string, alternateIPs []net.IP, a
if err != nil {
return nil, nil, err
}
// returns a uniform random value in [0, max-1), then add 1 to serial to make it a uniform random value in [1, max).
serial, err := cryptorand.Int(cryptorand.Reader, new(big.Int).SetInt64(math.MaxInt64-1))
if err != nil {
return nil, nil, err
}
serial = new(big.Int).Add(serial, big.NewInt(1))
caTemplate := x509.Certificate{
SerialNumber: big.NewInt(1),
SerialNumber: serial,
Subject: pkix.Name{
CommonName: fmt.Sprintf("%s-ca@%d", host, time.Now().Unix()),
},
@ -144,9 +156,14 @@ func GenerateSelfSignedCertKeyWithFixtures(host string, alternateIPs []net.IP, a
if err != nil {
return nil, nil, err
}
// returns a uniform random value in [0, max-1), then add 1 to serial to make it a uniform random value in [1, max).
serial, err = cryptorand.Int(cryptorand.Reader, new(big.Int).SetInt64(math.MaxInt64-1))
if err != nil {
return nil, nil, err
}
serial = new(big.Int).Add(serial, big.NewInt(1))
template := x509.Certificate{
SerialNumber: big.NewInt(2),
SerialNumber: serial,
Subject: pkix.Name{
CommonName: fmt.Sprintf("%s@%d", host, time.Now().Unix()),
},

26
vendor/modules.txt generated vendored
View File

@ -94,7 +94,7 @@ github.com/aws/amazon-ec2-instance-selector/v2/pkg/instancetypes
github.com/aws/amazon-ec2-instance-selector/v2/pkg/selector
github.com/aws/amazon-ec2-instance-selector/v2/pkg/selector/outputs
github.com/aws/amazon-ec2-instance-selector/v2/pkg/sorter
# github.com/aws/aws-sdk-go v1.44.301
# github.com/aws/aws-sdk-go v1.44.305
## explicit; go 1.11
github.com/aws/aws-sdk-go/aws
github.com/aws/aws-sdk-go/aws/arn
@ -251,7 +251,7 @@ github.com/cyphar/filepath-securejoin
# github.com/davecgh/go-spew v1.1.1
## explicit
github.com/davecgh/go-spew/spew
# github.com/digitalocean/godo v1.99.0
# github.com/digitalocean/godo v1.100.0
## explicit; go 1.18
github.com/digitalocean/godo
github.com/digitalocean/godo/metrics
@ -1026,7 +1026,7 @@ golang.org/x/tools/internal/typesinternal
# gomodules.xyz/jsonpatch/v2 v2.3.0
## explicit; go 1.20
gomodules.xyz/jsonpatch/v2
# google.golang.org/api v0.131.0
# google.golang.org/api v0.132.0
## explicit; go 1.19
google.golang.org/api/cloudresourcemanager/v1
google.golang.org/api/compute/v0.alpha
@ -1063,7 +1063,7 @@ google.golang.org/appengine/internal/socket
google.golang.org/appengine/internal/urlfetch
google.golang.org/appengine/socket
google.golang.org/appengine/urlfetch
# google.golang.org/genproto/googleapis/rpc v0.0.0-20230706204954-ccb25ca9f130
# google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98
## explicit; go 1.19
google.golang.org/genproto/googleapis/rpc/code
google.golang.org/genproto/googleapis/rpc/errdetails
@ -1195,7 +1195,7 @@ helm.sh/helm/v3/pkg/helmpath/xdg
helm.sh/helm/v3/pkg/plugin
helm.sh/helm/v3/pkg/registry
helm.sh/helm/v3/pkg/strvals
# k8s.io/api v0.27.3
# k8s.io/api v0.27.4
## explicit; go 1.20
k8s.io/api/admission/v1
k8s.io/api/admission/v1beta1
@ -1256,7 +1256,7 @@ k8s.io/api/storage/v1beta1
## explicit; go 1.20
k8s.io/apiextensions-apiserver/pkg/apis/apiextensions
k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1
# k8s.io/apimachinery v0.27.3
# k8s.io/apimachinery v0.27.4
## explicit; go 1.20
k8s.io/apimachinery/pkg/api/equality
k8s.io/apimachinery/pkg/api/errors
@ -1314,12 +1314,12 @@ k8s.io/apimachinery/pkg/watch
k8s.io/apimachinery/third_party/forked/golang/json
k8s.io/apimachinery/third_party/forked/golang/netutil
k8s.io/apimachinery/third_party/forked/golang/reflect
# k8s.io/cli-runtime v0.27.3
# k8s.io/cli-runtime v0.27.4
## explicit; go 1.20
k8s.io/cli-runtime/pkg/genericclioptions
k8s.io/cli-runtime/pkg/printers
k8s.io/cli-runtime/pkg/resource
# k8s.io/client-go v0.27.3
# k8s.io/client-go v0.27.4
## explicit; go 1.20
k8s.io/client-go/applyconfigurations/admissionregistration/v1
k8s.io/client-go/applyconfigurations/admissionregistration/v1alpha1
@ -1660,7 +1660,7 @@ k8s.io/cloud-provider-aws/pkg/providers/v1
# k8s.io/cloud-provider-gcp/providers v0.26.2
## explicit; go 1.19
k8s.io/cloud-provider-gcp/providers/gce
# k8s.io/component-base v0.27.3
# k8s.io/component-base v0.27.4
## explicit; go 1.20
k8s.io/component-base/cli/flag
k8s.io/component-base/config
@ -1676,7 +1676,7 @@ k8s.io/component-base/metrics/prometheus/restclient
k8s.io/component-base/metrics/prometheusextension
k8s.io/component-base/tracing/api/v1
k8s.io/component-base/version
# k8s.io/component-helpers v0.27.3
# k8s.io/component-helpers v0.27.4
## explicit; go 1.20
k8s.io/component-helpers/node/util
# k8s.io/csi-translation-lib v0.27.0
@ -1716,7 +1716,7 @@ k8s.io/kube-openapi/pkg/spec3
k8s.io/kube-openapi/pkg/util/proto
k8s.io/kube-openapi/pkg/util/proto/validation
k8s.io/kube-openapi/pkg/validation/spec
# k8s.io/kubectl v0.27.3
# k8s.io/kubectl v0.27.4
## explicit; go 1.20
k8s.io/kubectl/pkg/cmd/util
k8s.io/kubectl/pkg/cmd/util/editor
@ -1731,10 +1731,10 @@ k8s.io/kubectl/pkg/util/slice
k8s.io/kubectl/pkg/util/templates
k8s.io/kubectl/pkg/util/term
k8s.io/kubectl/pkg/validation
# k8s.io/kubelet v0.27.3
# k8s.io/kubelet v0.27.4
## explicit; go 1.20
k8s.io/kubelet/config/v1beta1
# k8s.io/mount-utils v0.27.3
# k8s.io/mount-utils v0.27.4
## explicit; go 1.20
k8s.io/mount-utils
# k8s.io/utils v0.0.0-20230711102312-30195339c3c7