vendor: update all dependencies

This commit is contained in:
Nick Craig-Wood 2018-06-17 17:59:12 +01:00
parent 3f0789e2db
commit 08021c4636
2474 changed files with 435818 additions and 282709 deletions

View file

@ -24,7 +24,7 @@
"description": "The Deployment Manager API allows users to declaratively configure, deploy and run complex solutions on the Google Cloud Platform.",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/deployment-manager/",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/Kwe2DoH7rGZUK2tfaHT_blT-rl4\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/tdbJPMazx6MrJLWgJ0381Mo2V1Y\"",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
@ -652,7 +652,7 @@
},
"path": "{project}/global/deployments/{resource}/setIamPolicy",
"request": {
"$ref": "Policy"
"$ref": "GlobalSetPolicyRequest"
},
"response": {
"$ref": "Policy"
@ -1193,7 +1193,7 @@
"type": "string"
},
"type": {
"description": "The name of the type provider for this request.",
"description": "The name of the type provider type for this request.",
"location": "path",
"required": true,
"type": "string"
@ -1650,7 +1650,7 @@
}
}
},
"revision": "20180323",
"revision": "20180609",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"AsyncOptions": {
@ -1744,7 +1744,7 @@
"description": "The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently. This field is only visible as GOOGLE_INTERNAL or CONDITION_TRUSTED_TESTER."
},
"members": {
"description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` or `joe@example.com`.\n\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.\n\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.",
"description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .\n\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.\n\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.",
"items": {
"type": "string"
},
@ -2151,6 +2151,28 @@
},
"type": "object"
},
"GlobalSetPolicyRequest": {
"id": "GlobalSetPolicyRequest",
"properties": {
"bindings": {
"description": "Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings.",
"items": {
"$ref": "Binding"
},
"type": "array"
},
"etag": {
"description": "Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.",
"format": "byte",
"type": "string"
},
"policy": {
"$ref": "Policy",
"description": "REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them."
}
},
"type": "object"
},
"ImportFile": {
"description": "",
"id": "ImportFile",
@ -2342,7 +2364,7 @@
"id": "Operation",
"properties": {
"clientOperationId": {
"description": "[Output Only] Reserved for future use.",
"description": "[Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.",
"type": "string"
},
"creationTimestamp": {
@ -2542,7 +2564,7 @@
"type": "object"
},
"Policy": {
"description": "Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.\n\n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.\n\n**Example**\n\n{ \"bindings\": [ { \"role\": \"roles/owner\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-other-app@appspot.gserviceaccount.com\", ] }, { \"role\": \"roles/viewer\", \"members\": [\"user:sean@example.com\"] } ] }\n\nFor a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).",
"description": "Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.\n\n\n\nA `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.\n\n**JSON Example**\n\n{ \"bindings\": [ { \"role\": \"roles/owner\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-other-app@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/viewer\", \"members\": [\"user:sean@example.com\"] } ] }\n\n**YAML Example**\n\nbindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com role: roles/owner - members: - user:sean@example.com role: roles/viewer\n\n\n\nFor a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).",
"id": "Policy",
"properties": {
"auditConfigs": {

View file

@ -381,8 +381,7 @@ type Binding struct {
// account.
//
// * `user:{emailid}`: An email address that represents a specific
// Google account. For example, `alice@gmail.com` or
// `joe@example.com`.
// Google account. For example, `alice@gmail.com` .
//
//
//
@ -1158,6 +1157,44 @@ func (s *Expr) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type GlobalSetPolicyRequest struct {
// Bindings: Flatten Policy to create a backwacd compatible wire-format.
// Deprecated. Use 'policy' to specify bindings.
Bindings []*Binding `json:"bindings,omitempty"`
// Etag: Flatten Policy to create a backward compatible wire-format.
// Deprecated. Use 'policy' to specify the etag.
Etag string `json:"etag,omitempty"`
// Policy: REQUIRED: The complete policy to be applied to the
// 'resource'. The size of the policy is limited to a few 10s of KB. An
// empty policy is in general a valid policy but certain services (like
// Projects) might reject them.
Policy *Policy `json:"policy,omitempty"`
// ForceSendFields is a list of field names (e.g. "Bindings") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Bindings") 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 *GlobalSetPolicyRequest) MarshalJSON() ([]byte, error) {
type NoMethod GlobalSetPolicyRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ImportFile struct {
// Content: The contents of the file.
Content string `json:"content,omitempty"`
@ -1525,7 +1562,8 @@ func (s *MethodMap) MarshalJSON() ([]byte, error) {
// (== resource_for beta.regionOperations ==) (== resource_for
// v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
type Operation struct {
// ClientOperationId: [Output Only] Reserved for future use.
// ClientOperationId: [Output Only] The value of `requestId` if you
// provided it in the request. Not present otherwise.
ClientOperationId string `json:"clientOperationId,omitempty"`
// CreationTimestamp: [Deprecated] This field is deprecated.
@ -1874,20 +1912,30 @@ func (s *Options) MarshalJSON() ([]byte, error) {
//
//
//
// A `Policy` consists of a list of `bindings`. A `Binding` binds a list
// A `Policy` consists of a list of `bindings`. A `binding` binds a list
// of `members` to a `role`, where the members can be user accounts,
// Google groups, Google domains, and service accounts. A `role` is a
// named list of permissions defined by IAM.
//
// **Example**
// **JSON Example**
//
// { "bindings": [ { "role": "roles/owner", "members": [
// "user:mike@example.com", "group:admins@example.com",
// "domain:google.com",
// "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, {
// "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, {
// "role": "roles/viewer", "members": ["user:sean@example.com"] } ]
// }
//
// **YAML Example**
//
// bindings: - members: - user:mike@example.com -
// group:admins@example.com - domain:google.com -
// serviceAccount:my-other-app@appspot.gserviceaccount.com role:
// roles/owner - members: - user:sean@example.com role:
// roles/viewer
//
//
//
// For a description of IAM and its features, see the [IAM developer's
// guide](https://cloud.google.com/iam/docs).
type Policy struct {
@ -5305,22 +5353,22 @@ func (c *DeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, err
// method id "deploymentmanager.deployments.setIamPolicy":
type DeploymentsSetIamPolicyCall struct {
s *Service
project string
resource string
policy *Policy
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
s *Service
project string
resource string
globalsetpolicyrequest *GlobalSetPolicyRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// SetIamPolicy: Sets the access control policy on the specified
// resource. Replaces any existing policy.
func (r *DeploymentsService) SetIamPolicy(project string, resource string, policy *Policy) *DeploymentsSetIamPolicyCall {
func (r *DeploymentsService) SetIamPolicy(project string, resource string, globalsetpolicyrequest *GlobalSetPolicyRequest) *DeploymentsSetIamPolicyCall {
c := &DeploymentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.project = project
c.resource = resource
c.policy = policy
c.globalsetpolicyrequest = globalsetpolicyrequest
return c
}
@ -5356,7 +5404,7 @@ func (c *DeploymentsSetIamPolicyCall) doRequest(alt string) (*http.Response, err
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.policy)
body, err := googleapi.WithoutDataWrapper.JSONReader(c.globalsetpolicyrequest)
if err != nil {
return nil, err
}
@ -5436,7 +5484,7 @@ func (c *DeploymentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy,
// },
// "path": "{project}/global/deployments/{resource}/setIamPolicy",
// "request": {
// "$ref": "Policy"
// "$ref": "GlobalSetPolicyRequest"
// },
// "response": {
// "$ref": "Policy"
@ -7631,7 +7679,7 @@ func (c *TypeProvidersGetTypeCall) Do(opts ...googleapi.CallOption) (*TypeInfo,
// "type": "string"
// },
// "type": {
// "description": "The name of the type provider for this request.",
// "description": "The name of the type provider type for this request.",
// "location": "path",
// "required": true,
// "type": "string"

View file

@ -24,7 +24,7 @@
"description": "Declares, configures, and deploys complex solutions on Google Cloud Platform.",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/deployment-manager/",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/AwjFnEseEkjUP7nl3FbV-mrXtTg\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/4vHGfy0PBj0rG7tIHK1cZJWS9Ek\"",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
@ -426,7 +426,7 @@
},
"path": "{project}/global/deployments/{resource}/setIamPolicy",
"request": {
"$ref": "Policy"
"$ref": "GlobalSetPolicyRequest"
},
"response": {
"$ref": "Policy"
@ -932,7 +932,7 @@
}
}
},
"revision": "20180323",
"revision": "20180503",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"AuditConfig": {
@ -998,7 +998,7 @@
"description": "The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently. This field is only visible as GOOGLE_INTERNAL or CONDITION_TRUSTED_TESTER."
},
"members": {
"description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` or `joe@example.com`.\n\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.\n\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.",
"description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .\n\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.\n\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.",
"items": {
"type": "string"
},
@ -1223,6 +1223,28 @@
},
"type": "object"
},
"GlobalSetPolicyRequest": {
"id": "GlobalSetPolicyRequest",
"properties": {
"bindings": {
"description": "Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings.",
"items": {
"$ref": "Binding"
},
"type": "array"
},
"etag": {
"description": "Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.",
"format": "byte",
"type": "string"
},
"policy": {
"$ref": "Policy",
"description": "REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them."
}
},
"type": "object"
},
"ImportFile": {
"description": "",
"id": "ImportFile",
@ -1364,7 +1386,7 @@
"id": "Operation",
"properties": {
"clientOperationId": {
"description": "[Output Only] Reserved for future use.",
"description": "[Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.",
"type": "string"
},
"creationTimestamp": {
@ -1535,7 +1557,7 @@
"type": "object"
},
"Policy": {
"description": "Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.\n\n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.\n\n**Example**\n\n{ \"bindings\": [ { \"role\": \"roles/owner\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-other-app@appspot.gserviceaccount.com\", ] }, { \"role\": \"roles/viewer\", \"members\": [\"user:sean@example.com\"] } ] }\n\nFor a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).",
"description": "Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.\n\n\n\nA `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.\n\n**JSON Example**\n\n{ \"bindings\": [ { \"role\": \"roles/owner\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-other-app@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/viewer\", \"members\": [\"user:sean@example.com\"] } ] }\n\n**YAML Example**\n\nbindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com role: roles/owner - members: - user:sean@example.com role: roles/viewer\n\n\n\nFor a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).",
"id": "Policy",
"properties": {
"auditConfigs": {

View file

@ -294,8 +294,7 @@ type Binding struct {
// account.
//
// * `user:{emailid}`: An email address that represents a specific
// Google account. For example, `alice@gmail.com` or
// `joe@example.com`.
// Google account. For example, `alice@gmail.com` .
//
//
//
@ -757,6 +756,44 @@ func (s *Expr) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type GlobalSetPolicyRequest struct {
// Bindings: Flatten Policy to create a backwacd compatible wire-format.
// Deprecated. Use 'policy' to specify bindings.
Bindings []*Binding `json:"bindings,omitempty"`
// Etag: Flatten Policy to create a backward compatible wire-format.
// Deprecated. Use 'policy' to specify the etag.
Etag string `json:"etag,omitempty"`
// Policy: REQUIRED: The complete policy to be applied to the
// 'resource'. The size of the policy is limited to a few 10s of KB. An
// empty policy is in general a valid policy but certain services (like
// Projects) might reject them.
Policy *Policy `json:"policy,omitempty"`
// ForceSendFields is a list of field names (e.g. "Bindings") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Bindings") 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 *GlobalSetPolicyRequest) MarshalJSON() ([]byte, error) {
type NoMethod GlobalSetPolicyRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ImportFile struct {
// Content: The contents of the file.
Content string `json:"content,omitempty"`
@ -1039,7 +1076,8 @@ func (s *ManifestsListResponse) MarshalJSON() ([]byte, error) {
// (== resource_for beta.regionOperations ==) (== resource_for
// v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
type Operation struct {
// ClientOperationId: [Output Only] Reserved for future use.
// ClientOperationId: [Output Only] The value of `requestId` if you
// provided it in the request. Not present otherwise.
ClientOperationId string `json:"clientOperationId,omitempty"`
// CreationTimestamp: [Deprecated] This field is deprecated.
@ -1347,20 +1385,30 @@ func (s *OperationsListResponse) MarshalJSON() ([]byte, error) {
//
//
//
// A `Policy` consists of a list of `bindings`. A `Binding` binds a list
// A `Policy` consists of a list of `bindings`. A `binding` binds a list
// of `members` to a `role`, where the members can be user accounts,
// Google groups, Google domains, and service accounts. A `role` is a
// named list of permissions defined by IAM.
//
// **Example**
// **JSON Example**
//
// { "bindings": [ { "role": "roles/owner", "members": [
// "user:mike@example.com", "group:admins@example.com",
// "domain:google.com",
// "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, {
// "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, {
// "role": "roles/viewer", "members": ["user:sean@example.com"] } ]
// }
//
// **YAML Example**
//
// bindings: - members: - user:mike@example.com -
// group:admins@example.com - domain:google.com -
// serviceAccount:my-other-app@appspot.gserviceaccount.com role:
// roles/owner - members: - user:sean@example.com role:
// roles/viewer
//
//
//
// For a description of IAM and its features, see the [IAM developer's
// guide](https://cloud.google.com/iam/docs).
type Policy struct {
@ -3325,22 +3373,22 @@ func (c *DeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, err
// method id "deploymentmanager.deployments.setIamPolicy":
type DeploymentsSetIamPolicyCall struct {
s *Service
project string
resource string
policy *Policy
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
s *Service
project string
resource string
globalsetpolicyrequest *GlobalSetPolicyRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// SetIamPolicy: Sets the access control policy on the specified
// resource. Replaces any existing policy.
func (r *DeploymentsService) SetIamPolicy(project string, resource string, policy *Policy) *DeploymentsSetIamPolicyCall {
func (r *DeploymentsService) SetIamPolicy(project string, resource string, globalsetpolicyrequest *GlobalSetPolicyRequest) *DeploymentsSetIamPolicyCall {
c := &DeploymentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.project = project
c.resource = resource
c.policy = policy
c.globalsetpolicyrequest = globalsetpolicyrequest
return c
}
@ -3376,7 +3424,7 @@ func (c *DeploymentsSetIamPolicyCall) doRequest(alt string) (*http.Response, err
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.policy)
body, err := googleapi.WithoutDataWrapper.JSONReader(c.globalsetpolicyrequest)
if err != nil {
return nil, err
}
@ -3456,7 +3504,7 @@ func (c *DeploymentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy,
// },
// "path": "{project}/global/deployments/{resource}/setIamPolicy",
// "request": {
// "$ref": "Policy"
// "$ref": "GlobalSetPolicyRequest"
// },
// "response": {
// "$ref": "Policy"

View file

@ -24,7 +24,7 @@
"description": "The Deployment Manager API allows users to declaratively configure, deploy and run complex solutions on the Google Cloud Platform.",
"discoveryVersion": "v1",
"documentationLink": "https://developers.google.com/deployment-manager/",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/PCWAG75AZikXgM-QdvShE4zYkug\"",
"etag": "\"Zkyw9ACJZUvcYmlFaKGChzhmtnE/LkknaPBA2ag_gwJEt-rsY1S_xdU\"",
"icons": {
"x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png",
"x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png"
@ -652,7 +652,7 @@
},
"path": "{project}/global/deployments/{resource}/setIamPolicy",
"request": {
"$ref": "Policy"
"$ref": "GlobalSetPolicyRequest"
},
"response": {
"$ref": "Policy"
@ -1193,7 +1193,7 @@
"type": "string"
},
"type": {
"description": "The name of the type provider for this request.",
"description": "The name of the type provider type for this request.",
"location": "path",
"required": true,
"type": "string"
@ -1482,7 +1482,7 @@
}
}
},
"revision": "20180323",
"revision": "20180609",
"rootUrl": "https://www.googleapis.com/",
"schemas": {
"AsyncOptions": {
@ -1602,7 +1602,7 @@
"description": "The condition that is associated with this binding. NOTE: an unsatisfied condition will not allow user access via current binding. Different bindings, including their conditions, are examined independently. This field is only visible as GOOGLE_INTERNAL or CONDITION_TRUSTED_TESTER."
},
"members": {
"description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` or `joe@example.com`.\n\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.\n\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.",
"description": "Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@gmail.com` .\n\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`.\n\n\n\n* `domain:{domain}`: A Google Apps domain name that represents all the users of that domain. For example, `google.com` or `example.com`.",
"items": {
"type": "string"
},
@ -1952,6 +1952,28 @@
},
"type": "object"
},
"GlobalSetPolicyRequest": {
"id": "GlobalSetPolicyRequest",
"properties": {
"bindings": {
"description": "Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use 'policy' to specify bindings.",
"items": {
"$ref": "Binding"
},
"type": "array"
},
"etag": {
"description": "Flatten Policy to create a backward compatible wire-format. Deprecated. Use 'policy' to specify the etag.",
"format": "byte",
"type": "string"
},
"policy": {
"$ref": "Policy",
"description": "REQUIRED: The complete policy to be applied to the 'resource'. The size of the policy is limited to a few 10s of KB. An empty policy is in general a valid policy but certain services (like Projects) might reject them."
}
},
"type": "object"
},
"ImportFile": {
"description": "",
"id": "ImportFile",
@ -2116,7 +2138,7 @@
"id": "Operation",
"properties": {
"clientOperationId": {
"description": "[Output Only] Reserved for future use.",
"description": "[Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.",
"type": "string"
},
"creationTimestamp": {
@ -2316,7 +2338,7 @@
"type": "object"
},
"Policy": {
"description": "Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.\n\n\n\nA `Policy` consists of a list of `bindings`. A `Binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.\n\n**Example**\n\n{ \"bindings\": [ { \"role\": \"roles/owner\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-other-app@appspot.gserviceaccount.com\", ] }, { \"role\": \"roles/viewer\", \"members\": [\"user:sean@example.com\"] } ] }\n\nFor a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).",
"description": "Defines an Identity and Access Management (IAM) policy. It is used to specify access control policies for Cloud Platform resources.\n\n\n\nA `Policy` consists of a list of `bindings`. A `binding` binds a list of `members` to a `role`, where the members can be user accounts, Google groups, Google domains, and service accounts. A `role` is a named list of permissions defined by IAM.\n\n**JSON Example**\n\n{ \"bindings\": [ { \"role\": \"roles/owner\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-other-app@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/viewer\", \"members\": [\"user:sean@example.com\"] } ] }\n\n**YAML Example**\n\nbindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com role: roles/owner - members: - user:sean@example.com role: roles/viewer\n\n\n\nFor a description of IAM and its features, see the [IAM developer's guide](https://cloud.google.com/iam/docs).",
"id": "Policy",
"properties": {
"auditConfigs": {

View file

@ -421,8 +421,7 @@ type Binding struct {
// account.
//
// * `user:{emailid}`: An email address that represents a specific
// Google account. For example, `alice@gmail.com` or
// `joe@example.com`.
// Google account. For example, `alice@gmail.com` .
//
//
//
@ -1115,6 +1114,44 @@ func (s *Expr) MarshalJSON() ([]byte, error) {
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type GlobalSetPolicyRequest struct {
// Bindings: Flatten Policy to create a backwacd compatible wire-format.
// Deprecated. Use 'policy' to specify bindings.
Bindings []*Binding `json:"bindings,omitempty"`
// Etag: Flatten Policy to create a backward compatible wire-format.
// Deprecated. Use 'policy' to specify the etag.
Etag string `json:"etag,omitempty"`
// Policy: REQUIRED: The complete policy to be applied to the
// 'resource'. The size of the policy is limited to a few 10s of KB. An
// empty policy is in general a valid policy but certain services (like
// Projects) might reject them.
Policy *Policy `json:"policy,omitempty"`
// ForceSendFields is a list of field names (e.g. "Bindings") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Bindings") 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 *GlobalSetPolicyRequest) MarshalJSON() ([]byte, error) {
type NoMethod GlobalSetPolicyRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ImportFile struct {
// Content: The contents of the file.
Content string `json:"content,omitempty"`
@ -1436,7 +1473,8 @@ func (s *ManifestsListResponse) MarshalJSON() ([]byte, error) {
// (== resource_for beta.regionOperations ==) (== resource_for
// v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
type Operation struct {
// ClientOperationId: [Output Only] Reserved for future use.
// ClientOperationId: [Output Only] The value of `requestId` if you
// provided it in the request. Not present otherwise.
ClientOperationId string `json:"clientOperationId,omitempty"`
// CreationTimestamp: [Deprecated] This field is deprecated.
@ -1790,20 +1828,30 @@ func (s *Options) MarshalJSON() ([]byte, error) {
//
//
//
// A `Policy` consists of a list of `bindings`. A `Binding` binds a list
// A `Policy` consists of a list of `bindings`. A `binding` binds a list
// of `members` to a `role`, where the members can be user accounts,
// Google groups, Google domains, and service accounts. A `role` is a
// named list of permissions defined by IAM.
//
// **Example**
// **JSON Example**
//
// { "bindings": [ { "role": "roles/owner", "members": [
// "user:mike@example.com", "group:admins@example.com",
// "domain:google.com",
// "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, {
// "serviceAccount:my-other-app@appspot.gserviceaccount.com" ] }, {
// "role": "roles/viewer", "members": ["user:sean@example.com"] } ]
// }
//
// **YAML Example**
//
// bindings: - members: - user:mike@example.com -
// group:admins@example.com - domain:google.com -
// serviceAccount:my-other-app@appspot.gserviceaccount.com role:
// roles/owner - members: - user:sean@example.com role:
// roles/viewer
//
//
//
// For a description of IAM and its features, see the [IAM developer's
// guide](https://cloud.google.com/iam/docs).
type Policy struct {
@ -5198,22 +5246,22 @@ func (c *DeploymentsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, err
// method id "deploymentmanager.deployments.setIamPolicy":
type DeploymentsSetIamPolicyCall struct {
s *Service
project string
resource string
policy *Policy
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
s *Service
project string
resource string
globalsetpolicyrequest *GlobalSetPolicyRequest
urlParams_ gensupport.URLParams
ctx_ context.Context
header_ http.Header
}
// SetIamPolicy: Sets the access control policy on the specified
// resource. Replaces any existing policy.
func (r *DeploymentsService) SetIamPolicy(project string, resource string, policy *Policy) *DeploymentsSetIamPolicyCall {
func (r *DeploymentsService) SetIamPolicy(project string, resource string, globalsetpolicyrequest *GlobalSetPolicyRequest) *DeploymentsSetIamPolicyCall {
c := &DeploymentsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
c.project = project
c.resource = resource
c.policy = policy
c.globalsetpolicyrequest = globalsetpolicyrequest
return c
}
@ -5249,7 +5297,7 @@ func (c *DeploymentsSetIamPolicyCall) doRequest(alt string) (*http.Response, err
}
reqHeaders.Set("User-Agent", c.s.userAgent())
var body io.Reader = nil
body, err := googleapi.WithoutDataWrapper.JSONReader(c.policy)
body, err := googleapi.WithoutDataWrapper.JSONReader(c.globalsetpolicyrequest)
if err != nil {
return nil, err
}
@ -5329,7 +5377,7 @@ func (c *DeploymentsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy,
// },
// "path": "{project}/global/deployments/{resource}/setIamPolicy",
// "request": {
// "$ref": "Policy"
// "$ref": "GlobalSetPolicyRequest"
// },
// "response": {
// "$ref": "Policy"
@ -7524,7 +7572,7 @@ func (c *TypeProvidersGetTypeCall) Do(opts ...googleapi.CallOption) (*TypeInfo,
// "type": "string"
// },
// "type": {
// "description": "The name of the type provider for this request.",
// "description": "The name of the type provider type for this request.",
// "location": "path",
// "required": true,
// "type": "string"