mirror of
https://github.com/rclone/rclone.git
synced 2025-08-16 00:28:09 +02:00
vendor: update all dependencies
This commit is contained in:
63
vendor/google.golang.org/api/cloudresourcemanager/v1/cloudresourcemanager-api.json
generated
vendored
63
vendor/google.golang.org/api/cloudresourcemanager/v1/cloudresourcemanager-api.json
generated
vendored
@ -63,11 +63,6 @@
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"location": "query",
|
||||
@ -88,12 +83,6 @@
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"default": "true",
|
||||
"description": "Pretty-print response.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
@ -149,7 +138,7 @@
|
||||
]
|
||||
},
|
||||
"getEffectiveOrgPolicy": {
|
||||
"description": "Gets the effective `Policy` on a resource. This is the result of merging\n`Policies` in the resource hierarchy. The returned `Policy` will not have\nan `etag`set because it is a computed `Policy` across multiple resources.",
|
||||
"description": "Gets the effective `Policy` on a resource. This is the result of merging\n`Policies` in the resource hierarchy. The returned `Policy` will not have\nan `etag`set because it is a computed `Policy` across multiple resources.\nSubtrees of Resource Manager resource hierarchy with 'under:' prefix will\nnot be expanded.",
|
||||
"flatPath": "v1/folders/{foldersId}:getEffectiveOrgPolicy",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudresourcemanager.folders.getEffectiveOrgPolicy",
|
||||
@ -341,6 +330,32 @@
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only"
|
||||
]
|
||||
},
|
||||
"get": {
|
||||
"description": "Retrieve a Lien by `name`.\n\nCallers of this method will require permission on the `parent` resource.\nFor example, a Lien with a `parent` of `projects/1234` requires permission\nrequires permission `resourcemanager.projects.get` or\n`resourcemanager.projects.updateLiens`.",
|
||||
"flatPath": "v1/liens/{liensId}",
|
||||
"httpMethod": "GET",
|
||||
"id": "cloudresourcemanager.liens.get",
|
||||
"parameterOrder": [
|
||||
"name"
|
||||
],
|
||||
"parameters": {
|
||||
"name": {
|
||||
"description": "The name/identifier of the Lien.",
|
||||
"location": "path",
|
||||
"pattern": "^liens/.+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/{+name}",
|
||||
"response": {
|
||||
"$ref": "Lien"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
"https://www.googleapis.com/auth/cloud-platform.read-only"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "List all Liens applied to the `parent` resource.\n\nCallers of this method will require permission on the `parent` resource.\nFor example, a Lien with a `parent` of `projects/1234` requires permission\n`resourcemanager.projects.get`.",
|
||||
"flatPath": "v1/liens",
|
||||
@ -463,7 +478,7 @@
|
||||
]
|
||||
},
|
||||
"getEffectiveOrgPolicy": {
|
||||
"description": "Gets the effective `Policy` on a resource. This is the result of merging\n`Policies` in the resource hierarchy. The returned `Policy` will not have\nan `etag`set because it is a computed `Policy` across multiple resources.",
|
||||
"description": "Gets the effective `Policy` on a resource. This is the result of merging\n`Policies` in the resource hierarchy. The returned `Policy` will not have\nan `etag`set because it is a computed `Policy` across multiple resources.\nSubtrees of Resource Manager resource hierarchy with 'under:' prefix will\nnot be expanded.",
|
||||
"flatPath": "v1/organizations/{organizationsId}:getEffectiveOrgPolicy",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudresourcemanager.organizations.getEffectiveOrgPolicy",
|
||||
@ -744,7 +759,7 @@
|
||||
]
|
||||
},
|
||||
"create": {
|
||||
"description": "Request that a new Project be created. The result is an Operation which\ncan be used to track the creation process. It is automatically deleted\nafter a few hours, so there is no need to call DeleteOperation.\n\nOur SLO permits Project creation to take up to 30 seconds at the 90th\npercentile. As of 2016-08-29, we are observing 6 seconds 50th percentile\nlatency. 95th percentile latency is around 11 seconds. We recommend\npolling at the 5th second with an exponential backoff.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.create` on the specified parent for the new\nproject. The parent is identified by a specified ResourceId,\nwhich must include both an ID and a type, such as organization.",
|
||||
"description": "Request that a new Project be created. The result is an Operation which\ncan be used to track the creation process. It is automatically deleted\nafter a few hours, so there is no need to call DeleteOperation.\n\nOur SLO permits Project creation to take up to 30 seconds at the 90th\npercentile. As of 2016-08-29, we are observing 6 seconds 50th percentile\nlatency. 95th percentile latency is around 11 seconds. We recommend\npolling at the 5th second with an exponential backoff.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.create` on the specified parent for the new\nproject. The parent is identified by a specified ResourceId,\nwhich must include both an ID and a type, such as organization.\n\nThis method does not associate the new project with a billing account.\nYou can set or update the billing account associated with a project using\nthe [`projects.updateBillingInfo`]\n(/billing/reference/rest/v1/projects/updateBillingInfo) method.",
|
||||
"flatPath": "v1/projects",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudresourcemanager.projects.create",
|
||||
@ -839,7 +854,7 @@
|
||||
]
|
||||
},
|
||||
"getEffectiveOrgPolicy": {
|
||||
"description": "Gets the effective `Policy` on a resource. This is the result of merging\n`Policies` in the resource hierarchy. The returned `Policy` will not have\nan `etag`set because it is a computed `Policy` across multiple resources.",
|
||||
"description": "Gets the effective `Policy` on a resource. This is the result of merging\n`Policies` in the resource hierarchy. The returned `Policy` will not have\nan `etag`set because it is a computed `Policy` across multiple resources.\nSubtrees of Resource Manager resource hierarchy with 'under:' prefix will\nnot be expanded.",
|
||||
"flatPath": "v1/projects/{projectsId}:getEffectiveOrgPolicy",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudresourcemanager.projects.getEffectiveOrgPolicy",
|
||||
@ -1155,7 +1170,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180418",
|
||||
"revision": "20180611",
|
||||
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
|
||||
"schemas": {
|
||||
"Ancestor": {
|
||||
@ -1458,7 +1473,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"reason": {
|
||||
"description": "Concise user-visible strings indicating why an action cannot be performed\non a resource. Maximum lenth of 200 characters.\n\nExample: 'Holds production API key'",
|
||||
"description": "Concise user-visible strings indicating why an action cannot be performed\non a resource. Maximum length of 200 characters.\n\nExample: 'Holds production API key'",
|
||||
"type": "string"
|
||||
},
|
||||
"restrictions": {
|
||||
@ -1512,6 +1527,10 @@
|
||||
"suggestedValue": {
|
||||
"description": "Optional. The Google Cloud Console will try to default to a configuration\nthat matches the value specified in this `Constraint`.",
|
||||
"type": "string"
|
||||
},
|
||||
"supportsUnder": {
|
||||
"description": "Indicates whether subtrees of Cloud Resource Manager resource hierarchy\ncan be used in `Policy.allowed_values` and `Policy.denied_values`. For\nexample, `\"under:folders/123\"` would match any resource under the\n'folders/123' folder.",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@ -1569,7 +1588,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"ListPolicy": {
|
||||
"description": "Used in `policy_type` to specify how `list_policy` behaves at this\nresource.\n\nA `ListPolicy` can define specific values that are allowed or denied by\nsetting either the `allowed_values` or `denied_values` fields. It can also\nbe used to allow or deny all values, by setting the `all_values` field. If\n`all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of `allowed_values`\nor `denied_values` must be set (attempting to set both or neither will\nresult in a failed request). If `all_values` is set to either `ALLOW` or\n`DENY`, `allowed_values` and `denied_values` must be unset.",
|
||||
"description": "Used in `policy_type` to specify how `list_policy` behaves at this\nresource.\n\n`ListPolicy` can define specific values and subtrees of Cloud Resource\nManager resource hierarchy (`Organizations`, `Folders`, `Projects`) that\nare allowed or denied by setting the `allowed_values` and `denied_values`\nfields. This is achieved by using the `under:` and optional `is:` prefixes.\nThe `under:` prefix is used to denote resource subtree values.\nThe `is:` prefix is used to denote specific values, and is required only\nif the value contains a \":\". Values prefixed with \"is:\" are treated the\nsame as values with no prefix.\nAncestry subtrees must be in one of the following formats:\n - “projects/\u003cproject-id\u003e”, e.g. “projects/tokyo-rain-123”\n - “folders/\u003cfolder-id\u003e”, e.g. “folders/1234”\n - “organizations/\u003corganization-id\u003e”, e.g. “organizations/1234”\nThe `supports_under` field of the associated `Constraint` defines whether\nancestry prefixes can be used. You can set `allowed_values` and\n`denied_values` in the same `Policy` if `all_values` is\n`ALL_VALUES_UNSPECIFIED`. `ALLOW` or `DENY` are used to allow or deny all\nvalues. If `all_values` is set to either `ALLOW` or `DENY`,\n`allowed_values` and `denied_values` must be unset.",
|
||||
"id": "ListPolicy",
|
||||
"properties": {
|
||||
"allValues": {
|
||||
@ -1580,28 +1599,28 @@
|
||||
"DENY"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Indicates that either allowed_values or denied_values must be set.",
|
||||
"Indicates that allowed_values or denied_values must be set.",
|
||||
"A policy with this set allows all values.",
|
||||
"A policy with this set denies all values."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"allowedValues": {
|
||||
"description": "List of values allowed at this resource. Can only be set if no values\nare set for `denied_values` and `all_values` is set to\n`ALL_VALUES_UNSPECIFIED`.",
|
||||
"description": "List of values allowed at this resource. Can only be set if `all_values`\nis set to `ALL_VALUES_UNSPECIFIED`.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"deniedValues": {
|
||||
"description": "List of values denied at this resource. Can only be set if no values are\nset for `allowed_values` and `all_values` is set to\n`ALL_VALUES_UNSPECIFIED`.",
|
||||
"description": "List of values denied at this resource. Can only be set if `all_values`\nis set to `ALL_VALUES_UNSPECIFIED`.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"inheritFromParent": {
|
||||
"description": "Determines the inheritance behavior for this `Policy`.\n\nBy default, a `ListPolicy` set at a resource supercedes any `Policy` set\nanywhere up the resource hierarchy. However, if `inherit_from_parent` is\nset to `true`, then the values from the effective `Policy` of the parent\nresource are inherited, meaning the values set in this `Policy` are\nadded to the values inherited up the hierarchy.\n\nSetting `Policy` hierarchies that inherit both allowed values and denied\nvalues isn't recommended in most circumstances to keep the configuration\nsimple and understandable. However, it is possible to set a `Policy` with\n`allowed_values` set that inherits a `Policy` with `denied_values` set.\nIn this case, the values that are allowed must be in `allowed_values` and\nnot present in `denied_values`.\n\nFor example, suppose you have a `Constraint`\n`constraints/serviceuser.services`, which has a `constraint_type` of\n`list_constraint`, and with `constraint_default` set to `ALLOW`.\nSuppose that at the Organization level, a `Policy` is applied that\nrestricts the allowed API activations to {`E1`, `E2`}. Then, if a\n`Policy` is applied to a project below the Organization that has\n`inherit_from_parent` set to `false` and field all_values set to DENY,\nthen an attempt to activate any API will be denied.\n\nThe following examples demonstrate different possible layerings:\n\nExample 1 (no inherited values):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: “E1” allowed_values:”E2”}\n ``projects/bar`` has `inherit_from_parent` `false` and values:\n {allowed_values: \"E3\" allowed_values: \"E4\"}\nThe accepted values at `organizations/foo` are `E1`, `E2`.\nThe accepted values at `projects/bar` are `E3`, and `E4`.\n\nExample 2 (inherited values):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: “E1” allowed_values:”E2”}\n `projects/bar` has a `Policy` with values:\n {value: “E3” value: ”E4” inherit_from_parent: true}\nThe accepted values at `organizations/foo` are `E1`, `E2`.\nThe accepted values at `projects/bar` are `E1`, `E2`, `E3`, and `E4`.\n\nExample 3 (inheriting both allowed and denied values):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: \"E1\" allowed_values: \"E2\"}\n `projects/bar` has a `Policy` with:\n {denied_values: \"E1\"}\nThe accepted values at `organizations/foo` are `E1`, `E2`.\nThe value accepted at `projects/bar` is `E2`.\n\nExample 4 (RestoreDefault):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: “E1” allowed_values:”E2”}\n `projects/bar` has a `Policy` with values:\n {RestoreDefault: {}}\nThe accepted values at `organizations/foo` are `E1`, `E2`.\nThe accepted values at `projects/bar` are either all or none depending on\nthe value of `constraint_default` (if `ALLOW`, all; if\n`DENY`, none).\n\nExample 5 (no policy inherits parent policy):\n `organizations/foo` has no `Policy` set.\n `projects/bar` has no `Policy` set.\nThe accepted values at both levels are either all or none depending on\nthe value of `constraint_default` (if `ALLOW`, all; if\n`DENY`, none).\n\nExample 6 (ListConstraint allowing all):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: “E1” allowed_values: ”E2”}\n `projects/bar` has a `Policy` with:\n {all: ALLOW}\nThe accepted values at `organizations/foo` are `E1`, E2`.\nAny value is accepted at `projects/bar`.\n\nExample 7 (ListConstraint allowing none):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: “E1” allowed_values: ”E2”}\n `projects/bar` has a `Policy` with:\n {all: DENY}\nThe accepted values at `organizations/foo` are `E1`, E2`.\nNo value is accepted at `projects/bar`.",
|
||||
"description": "Determines the inheritance behavior for this `Policy`.\n\nBy default, a `ListPolicy` set at a resource supercedes any `Policy` set\nanywhere up the resource hierarchy. However, if `inherit_from_parent` is\nset to `true`, then the values from the effective `Policy` of the parent\nresource are inherited, meaning the values set in this `Policy` are\nadded to the values inherited up the hierarchy.\n\nSetting `Policy` hierarchies that inherit both allowed values and denied\nvalues isn't recommended in most circumstances to keep the configuration\nsimple and understandable. However, it is possible to set a `Policy` with\n`allowed_values` set that inherits a `Policy` with `denied_values` set.\nIn this case, the values that are allowed must be in `allowed_values` and\nnot present in `denied_values`.\n\nFor example, suppose you have a `Constraint`\n`constraints/serviceuser.services`, which has a `constraint_type` of\n`list_constraint`, and with `constraint_default` set to `ALLOW`.\nSuppose that at the Organization level, a `Policy` is applied that\nrestricts the allowed API activations to {`E1`, `E2`}. Then, if a\n`Policy` is applied to a project below the Organization that has\n`inherit_from_parent` set to `false` and field all_values set to DENY,\nthen an attempt to activate any API will be denied.\n\nThe following examples demonstrate different possible layerings for\n`projects/bar` parented by `organizations/foo`:\n\nExample 1 (no inherited values):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: “E1” allowed_values:”E2”}\n `projects/bar` has `inherit_from_parent` `false` and values:\n {allowed_values: \"E3\" allowed_values: \"E4\"}\nThe accepted values at `organizations/foo` are `E1`, `E2`.\nThe accepted values at `projects/bar` are `E3`, and `E4`.\n\nExample 2 (inherited values):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: “E1” allowed_values:”E2”}\n `projects/bar` has a `Policy` with values:\n {value: “E3” value: ”E4” inherit_from_parent: true}\nThe accepted values at `organizations/foo` are `E1`, `E2`.\nThe accepted values at `projects/bar` are `E1`, `E2`, `E3`, and `E4`.\n\nExample 3 (inheriting both allowed and denied values):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: \"E1\" allowed_values: \"E2\"}\n `projects/bar` has a `Policy` with:\n {denied_values: \"E1\"}\nThe accepted values at `organizations/foo` are `E1`, `E2`.\nThe value accepted at `projects/bar` is `E2`.\n\nExample 4 (RestoreDefault):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: “E1” allowed_values:”E2”}\n `projects/bar` has a `Policy` with values:\n {RestoreDefault: {}}\nThe accepted values at `organizations/foo` are `E1`, `E2`.\nThe accepted values at `projects/bar` are either all or none depending on\nthe value of `constraint_default` (if `ALLOW`, all; if\n`DENY`, none).\n\nExample 5 (no policy inherits parent policy):\n `organizations/foo` has no `Policy` set.\n `projects/bar` has no `Policy` set.\nThe accepted values at both levels are either all or none depending on\nthe value of `constraint_default` (if `ALLOW`, all; if\n`DENY`, none).\n\nExample 6 (ListConstraint allowing all):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: “E1” allowed_values: ”E2”}\n `projects/bar` has a `Policy` with:\n {all: ALLOW}\nThe accepted values at `organizations/foo` are `E1`, E2`.\nAny value is accepted at `projects/bar`.\n\nExample 7 (ListConstraint allowing none):\n `organizations/foo` has a `Policy` with values:\n {allowed_values: “E1” allowed_values: ”E2”}\n `projects/bar` has a `Policy` with:\n {all: DENY}\nThe accepted values at `organizations/foo` are `E1`, E2`.\nNo value is accepted at `projects/bar`.\n\nExample 10 (allowed and denied subtrees of Resource Manager hierarchy):\nGiven the following resource hierarchy\n O1-\u003e{F1, F2}; F1-\u003e{P1}; F2-\u003e{P2, P3},\n `organizations/foo` has a `Policy` with values:\n {allowed_values: \"under:organizations/O1\"}\n `projects/bar` has a `Policy` with:\n {allowed_values: \"under:projects/P3\"}\n {denied_values: \"under:folders/F2\"}\nThe accepted values at `organizations/foo` are `organizations/O1`,\n `folders/F1`, `folders/F2`, `projects/P1`, `projects/P2`,\n `projects/P3`.\nThe accepted values at `projects/bar` are `organizations/O1`,\n `folders/F1`, `projects/P1`.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"suggestedValue": {
|
||||
|
265
vendor/google.golang.org/api/cloudresourcemanager/v1/cloudresourcemanager-gen.go
generated
vendored
265
vendor/google.golang.org/api/cloudresourcemanager/v1/cloudresourcemanager-gen.go
generated
vendored
@ -854,7 +854,7 @@ type Lien struct {
|
||||
|
||||
// Reason: Concise user-visible strings indicating why an action cannot
|
||||
// be performed
|
||||
// on a resource. Maximum lenth of 200 characters.
|
||||
// on a resource. Maximum length of 200 characters.
|
||||
//
|
||||
// Example: 'Holds production API key'
|
||||
Reason string `json:"reason,omitempty"`
|
||||
@ -991,6 +991,15 @@ type ListConstraint struct {
|
||||
// that matches the value specified in this `Constraint`.
|
||||
SuggestedValue string `json:"suggestedValue,omitempty"`
|
||||
|
||||
// SupportsUnder: Indicates whether subtrees of Cloud Resource Manager
|
||||
// resource hierarchy
|
||||
// can be used in `Policy.allowed_values` and `Policy.denied_values`.
|
||||
// For
|
||||
// example, "under:folders/123" would match any resource under
|
||||
// the
|
||||
// 'folders/123' folder.
|
||||
SupportsUnder bool `json:"supportsUnder,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "SuggestedValue") to
|
||||
// unconditionally include in API requests. By default, fields with
|
||||
// empty values are omitted from API requests. However, any non-pointer,
|
||||
@ -1136,41 +1145,55 @@ func (s *ListOrgPoliciesResponse) MarshalJSON() ([]byte, error) {
|
||||
// behaves at this
|
||||
// resource.
|
||||
//
|
||||
// A `ListPolicy` can define specific values that are allowed or denied
|
||||
// by
|
||||
// setting either the `allowed_values` or `denied_values` fields. It can
|
||||
// also
|
||||
// be used to allow or deny all values, by setting the `all_values`
|
||||
// field. If
|
||||
// `all_values` is `ALL_VALUES_UNSPECIFIED`, exactly one of
|
||||
// `allowed_values`
|
||||
// or `denied_values` must be set (attempting to set both or neither
|
||||
// will
|
||||
// result in a failed request). If `all_values` is set to either `ALLOW`
|
||||
// or
|
||||
// `DENY`, `allowed_values` and `denied_values` must be unset.
|
||||
// `ListPolicy` can define specific values and subtrees of Cloud
|
||||
// Resource
|
||||
// Manager resource hierarchy (`Organizations`, `Folders`, `Projects`)
|
||||
// that
|
||||
// are allowed or denied by setting the `allowed_values` and
|
||||
// `denied_values`
|
||||
// fields. This is achieved by using the `under:` and optional `is:`
|
||||
// prefixes.
|
||||
// The `under:` prefix is used to denote resource subtree values.
|
||||
// The `is:` prefix is used to denote specific values, and is required
|
||||
// only
|
||||
// if the value contains a ":". Values prefixed with "is:" are treated
|
||||
// the
|
||||
// same as values with no prefix.
|
||||
// Ancestry subtrees must be in one of the following formats:
|
||||
// - “projects/<project-id>”, e.g.
|
||||
// “projects/tokyo-rain-123”
|
||||
// - “folders/<folder-id>”, e.g. “folders/1234”
|
||||
// - “organizations/<organization-id>”, e.g.
|
||||
// “organizations/1234”
|
||||
// The `supports_under` field of the associated `Constraint` defines
|
||||
// whether
|
||||
// ancestry prefixes can be used. You can set `allowed_values`
|
||||
// and
|
||||
// `denied_values` in the same `Policy` if `all_values`
|
||||
// is
|
||||
// `ALL_VALUES_UNSPECIFIED`. `ALLOW` or `DENY` are used to allow or deny
|
||||
// all
|
||||
// values. If `all_values` is set to either `ALLOW` or
|
||||
// `DENY`,
|
||||
// `allowed_values` and `denied_values` must be unset.
|
||||
type ListPolicy struct {
|
||||
// AllValues: The policy all_values state.
|
||||
//
|
||||
// Possible values:
|
||||
// "ALL_VALUES_UNSPECIFIED" - Indicates that either allowed_values or
|
||||
// "ALL_VALUES_UNSPECIFIED" - Indicates that allowed_values or
|
||||
// denied_values must be set.
|
||||
// "ALLOW" - A policy with this set allows all values.
|
||||
// "DENY" - A policy with this set denies all values.
|
||||
AllValues string `json:"allValues,omitempty"`
|
||||
|
||||
// AllowedValues: List of values allowed at this resource. Can only be
|
||||
// set if no values
|
||||
// are set for `denied_values` and `all_values` is set
|
||||
// to
|
||||
// `ALL_VALUES_UNSPECIFIED`.
|
||||
// set if `all_values`
|
||||
// is set to `ALL_VALUES_UNSPECIFIED`.
|
||||
AllowedValues []string `json:"allowedValues,omitempty"`
|
||||
|
||||
// DeniedValues: List of values denied at this resource. Can only be set
|
||||
// if no values are
|
||||
// set for `allowed_values` and `all_values` is set
|
||||
// to
|
||||
// `ALL_VALUES_UNSPECIFIED`.
|
||||
// if `all_values`
|
||||
// is set to `ALL_VALUES_UNSPECIFIED`.
|
||||
DeniedValues []string `json:"deniedValues,omitempty"`
|
||||
|
||||
// InheritFromParent: Determines the inheritance behavior for this
|
||||
@ -1214,13 +1237,14 @@ type ListPolicy struct {
|
||||
// DENY,
|
||||
// then an attempt to activate any API will be denied.
|
||||
//
|
||||
// The following examples demonstrate different possible
|
||||
// layerings:
|
||||
// The following examples demonstrate different possible layerings
|
||||
// for
|
||||
// `projects/bar` parented by `organizations/foo`:
|
||||
//
|
||||
// Example 1 (no inherited values):
|
||||
// `organizations/foo` has a `Policy` with values:
|
||||
// {allowed_values: “E1” allowed_values:”E2”}
|
||||
// ``projects/bar`` has `inherit_from_parent` `false` and values:
|
||||
// `projects/bar` has `inherit_from_parent` `false` and values:
|
||||
// {allowed_values: "E3" allowed_values: "E4"}
|
||||
// The accepted values at `organizations/foo` are `E1`, `E2`.
|
||||
// The accepted values at `projects/bar` are `E3`, and `E4`.
|
||||
@ -1276,6 +1300,21 @@ type ListPolicy struct {
|
||||
// {all: DENY}
|
||||
// The accepted values at `organizations/foo` are `E1`, E2`.
|
||||
// No value is accepted at `projects/bar`.
|
||||
//
|
||||
// Example 10 (allowed and denied subtrees of Resource Manager
|
||||
// hierarchy):
|
||||
// Given the following resource hierarchy
|
||||
// O1->{F1, F2}; F1->{P1}; F2->{P2, P3},
|
||||
// `organizations/foo` has a `Policy` with values:
|
||||
// {allowed_values: "under:organizations/O1"}
|
||||
// `projects/bar` has a `Policy` with:
|
||||
// {allowed_values: "under:projects/P3"}
|
||||
// {denied_values: "under:folders/F2"}
|
||||
// The accepted values at `organizations/foo` are `organizations/O1`,
|
||||
// `folders/F1`, `folders/F2`, `projects/P1`, `projects/P2`,
|
||||
// `projects/P3`.
|
||||
// The accepted values at `projects/bar` are `organizations/O1`,
|
||||
// `folders/F1`, `projects/P1`.
|
||||
InheritFromParent bool `json:"inheritFromParent,omitempty"`
|
||||
|
||||
// SuggestedValue: Optional. The Google Cloud Console will try to
|
||||
@ -2497,6 +2536,9 @@ type FoldersGetEffectiveOrgPolicyCall struct {
|
||||
// have
|
||||
// an `etag`set because it is a computed `Policy` across multiple
|
||||
// resources.
|
||||
// Subtrees of Resource Manager resource hierarchy with 'under:' prefix
|
||||
// will
|
||||
// not be expanded.
|
||||
func (r *FoldersService) GetEffectiveOrgPolicy(resource string, geteffectiveorgpolicyrequest *GetEffectiveOrgPolicyRequest) *FoldersGetEffectiveOrgPolicyCall {
|
||||
c := &FoldersGetEffectiveOrgPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.resource = resource
|
||||
@ -2590,7 +2632,7 @@ func (c *FoldersGetEffectiveOrgPolicyCall) Do(opts ...googleapi.CallOption) (*Or
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Gets the effective `Policy` on a resource. This is the result of merging\n`Policies` in the resource hierarchy. The returned `Policy` will not have\nan `etag`set because it is a computed `Policy` across multiple resources.",
|
||||
// "description": "Gets the effective `Policy` on a resource. This is the result of merging\n`Policies` in the resource hierarchy. The returned `Policy` will not have\nan `etag`set because it is a computed `Policy` across multiple resources.\nSubtrees of Resource Manager resource hierarchy with 'under:' prefix will\nnot be expanded.",
|
||||
// "flatPath": "v1/folders/{foldersId}:getEffectiveOrgPolicy",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudresourcemanager.folders.getEffectiveOrgPolicy",
|
||||
@ -3487,6 +3529,154 @@ func (c *LiensDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
|
||||
|
||||
}
|
||||
|
||||
// method id "cloudresourcemanager.liens.get":
|
||||
|
||||
type LiensGetCall struct {
|
||||
s *Service
|
||||
nameid string
|
||||
urlParams_ gensupport.URLParams
|
||||
ifNoneMatch_ string
|
||||
ctx_ context.Context
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Get: Retrieve a Lien by `name`.
|
||||
//
|
||||
// Callers of this method will require permission on the `parent`
|
||||
// resource.
|
||||
// For example, a Lien with a `parent` of `projects/1234` requires
|
||||
// permission
|
||||
// requires permission `resourcemanager.projects.get`
|
||||
// or
|
||||
// `resourcemanager.projects.updateLiens`.
|
||||
func (r *LiensService) Get(nameid string) *LiensGetCall {
|
||||
c := &LiensGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.nameid = nameid
|
||||
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 *LiensGetCall) Fields(s ...googleapi.Field) *LiensGetCall {
|
||||
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 *LiensGetCall) IfNoneMatch(entityTag string) *LiensGetCall {
|
||||
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 *LiensGetCall) Context(ctx context.Context) *LiensGetCall {
|
||||
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 *LiensGetCall) Header() http.Header {
|
||||
if c.header_ == nil {
|
||||
c.header_ = make(http.Header)
|
||||
}
|
||||
return c.header_
|
||||
}
|
||||
|
||||
func (c *LiensGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
reqHeaders := make(http.Header)
|
||||
for k, v := range c.header_ {
|
||||
reqHeaders[k] = v
|
||||
}
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
if c.ifNoneMatch_ != "" {
|
||||
reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
|
||||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.nameid,
|
||||
})
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
|
||||
// Do executes the "cloudresourcemanager.liens.get" call.
|
||||
// Exactly one of *Lien or error will be non-nil. Any non-2xx status
|
||||
// code is an error. Response headers are in either
|
||||
// *Lien.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 *LiensGetCall) Do(opts ...googleapi.CallOption) (*Lien, error) {
|
||||
gensupport.SetOptions(c.urlParams_, opts...)
|
||||
res, err := c.doRequest("json")
|
||||
if res != nil && res.StatusCode == http.StatusNotModified {
|
||||
if res.Body != nil {
|
||||
res.Body.Close()
|
||||
}
|
||||
return nil, &googleapi.Error{
|
||||
Code: res.StatusCode,
|
||||
Header: res.Header,
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
defer googleapi.CloseBody(res)
|
||||
if err := googleapi.CheckResponse(res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ret := &Lien{
|
||||
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": "Retrieve a Lien by `name`.\n\nCallers of this method will require permission on the `parent` resource.\nFor example, a Lien with a `parent` of `projects/1234` requires permission\nrequires permission `resourcemanager.projects.get` or\n`resourcemanager.projects.updateLiens`.",
|
||||
// "flatPath": "v1/liens/{liensId}",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "cloudresourcemanager.liens.get",
|
||||
// "parameterOrder": [
|
||||
// "name"
|
||||
// ],
|
||||
// "parameters": {
|
||||
// "name": {
|
||||
// "description": "The name/identifier of the Lien.",
|
||||
// "location": "path",
|
||||
// "pattern": "^liens/.+$",
|
||||
// "required": true,
|
||||
// "type": "string"
|
||||
// }
|
||||
// },
|
||||
// "path": "v1/{+name}",
|
||||
// "response": {
|
||||
// "$ref": "Lien"
|
||||
// },
|
||||
// "scopes": [
|
||||
// "https://www.googleapis.com/auth/cloud-platform",
|
||||
// "https://www.googleapis.com/auth/cloud-platform.read-only"
|
||||
// ]
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// method id "cloudresourcemanager.liens.list":
|
||||
|
||||
type LiensListCall struct {
|
||||
@ -4116,6 +4306,9 @@ type OrganizationsGetEffectiveOrgPolicyCall struct {
|
||||
// have
|
||||
// an `etag`set because it is a computed `Policy` across multiple
|
||||
// resources.
|
||||
// Subtrees of Resource Manager resource hierarchy with 'under:' prefix
|
||||
// will
|
||||
// not be expanded.
|
||||
func (r *OrganizationsService) GetEffectiveOrgPolicy(resource string, geteffectiveorgpolicyrequest *GetEffectiveOrgPolicyRequest) *OrganizationsGetEffectiveOrgPolicyCall {
|
||||
c := &OrganizationsGetEffectiveOrgPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.resource = resource
|
||||
@ -4209,7 +4402,7 @@ func (c *OrganizationsGetEffectiveOrgPolicyCall) Do(opts ...googleapi.CallOption
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Gets the effective `Policy` on a resource. This is the result of merging\n`Policies` in the resource hierarchy. The returned `Policy` will not have\nan `etag`set because it is a computed `Policy` across multiple resources.",
|
||||
// "description": "Gets the effective `Policy` on a resource. This is the result of merging\n`Policies` in the resource hierarchy. The returned `Policy` will not have\nan `etag`set because it is a computed `Policy` across multiple resources.\nSubtrees of Resource Manager resource hierarchy with 'under:' prefix will\nnot be expanded.",
|
||||
// "flatPath": "v1/organizations/{organizationsId}:getEffectiveOrgPolicy",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudresourcemanager.organizations.getEffectiveOrgPolicy",
|
||||
@ -5591,6 +5784,15 @@ type ProjectsCreateCall struct {
|
||||
// new
|
||||
// project. The parent is identified by a specified ResourceId,
|
||||
// which must include both an ID and a type, such as organization.
|
||||
//
|
||||
// This method does not associate the new project with a billing
|
||||
// account.
|
||||
// You can set or update the billing account associated with a project
|
||||
// using
|
||||
// the
|
||||
// [`projects.updateBillingInfo`]
|
||||
// (/billing/reference/rest/v1/projects/up
|
||||
// dateBillingInfo) method.
|
||||
func (r *ProjectsService) Create(project *Project) *ProjectsCreateCall {
|
||||
c := &ProjectsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
@ -5680,7 +5882,7 @@ func (c *ProjectsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Request that a new Project be created. The result is an Operation which\ncan be used to track the creation process. It is automatically deleted\nafter a few hours, so there is no need to call DeleteOperation.\n\nOur SLO permits Project creation to take up to 30 seconds at the 90th\npercentile. As of 2016-08-29, we are observing 6 seconds 50th percentile\nlatency. 95th percentile latency is around 11 seconds. We recommend\npolling at the 5th second with an exponential backoff.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.create` on the specified parent for the new\nproject. The parent is identified by a specified ResourceId,\nwhich must include both an ID and a type, such as organization.",
|
||||
// "description": "Request that a new Project be created. The result is an Operation which\ncan be used to track the creation process. It is automatically deleted\nafter a few hours, so there is no need to call DeleteOperation.\n\nOur SLO permits Project creation to take up to 30 seconds at the 90th\npercentile. As of 2016-08-29, we are observing 6 seconds 50th percentile\nlatency. 95th percentile latency is around 11 seconds. We recommend\npolling at the 5th second with an exponential backoff.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.create` on the specified parent for the new\nproject. The parent is identified by a specified ResourceId,\nwhich must include both an ID and a type, such as organization.\n\nThis method does not associate the new project with a billing account.\nYou can set or update the billing account associated with a project using\nthe [`projects.updateBillingInfo`]\n(/billing/reference/rest/v1/projects/updateBillingInfo) method.",
|
||||
// "flatPath": "v1/projects",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudresourcemanager.projects.create",
|
||||
@ -6145,6 +6347,9 @@ type ProjectsGetEffectiveOrgPolicyCall struct {
|
||||
// have
|
||||
// an `etag`set because it is a computed `Policy` across multiple
|
||||
// resources.
|
||||
// Subtrees of Resource Manager resource hierarchy with 'under:' prefix
|
||||
// will
|
||||
// not be expanded.
|
||||
func (r *ProjectsService) GetEffectiveOrgPolicy(resource string, geteffectiveorgpolicyrequest *GetEffectiveOrgPolicyRequest) *ProjectsGetEffectiveOrgPolicyCall {
|
||||
c := &ProjectsGetEffectiveOrgPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.resource = resource
|
||||
@ -6238,7 +6443,7 @@ func (c *ProjectsGetEffectiveOrgPolicyCall) Do(opts ...googleapi.CallOption) (*O
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Gets the effective `Policy` on a resource. This is the result of merging\n`Policies` in the resource hierarchy. The returned `Policy` will not have\nan `etag`set because it is a computed `Policy` across multiple resources.",
|
||||
// "description": "Gets the effective `Policy` on a resource. This is the result of merging\n`Policies` in the resource hierarchy. The returned `Policy` will not have\nan `etag`set because it is a computed `Policy` across multiple resources.\nSubtrees of Resource Manager resource hierarchy with 'under:' prefix will\nnot be expanded.",
|
||||
// "flatPath": "v1/projects/{projectsId}:getEffectiveOrgPolicy",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudresourcemanager.projects.getEffectiveOrgPolicy",
|
||||
|
15
vendor/google.golang.org/api/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json
generated
vendored
15
vendor/google.golang.org/api/cloudresourcemanager/v1beta1/cloudresourcemanager-api.json
generated
vendored
@ -63,11 +63,6 @@
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"location": "query",
|
||||
@ -88,12 +83,6 @@
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"default": "true",
|
||||
"description": "Pretty-print response.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
@ -303,7 +292,7 @@
|
||||
"projects": {
|
||||
"methods": {
|
||||
"create": {
|
||||
"description": "Creates a Project resource.\n\nInitially, the Project resource is owned by its creator exclusively.\nThe creator can later grant permission to others to read or update the\nProject.\n\nSeveral APIs are activated automatically for the Project, including\nGoogle Cloud Storage. The parent is identified by a specified\nResourceId, which must include both an ID and a type, such as\nproject, folder, or organization.",
|
||||
"description": "Creates a Project resource.\n\nInitially, the Project resource is owned by its creator exclusively.\nThe creator can later grant permission to others to read or update the\nProject.\n\nSeveral APIs are activated automatically for the Project, including\nGoogle Cloud Storage. The parent is identified by a specified\nResourceId, which must include both an ID and a type, such as\nproject, folder, or organization.\n\nThis method does not associate the new project with a billing account.\nYou can set or update the billing account associated with a project using\nthe [`projects.updateBillingInfo`]\n(/billing/reference/rest/v1/projects/updateBillingInfo) method.",
|
||||
"flatPath": "v1beta1/projects",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudresourcemanager.projects.create",
|
||||
@ -576,7 +565,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180418",
|
||||
"revision": "20180606",
|
||||
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
|
||||
"schemas": {
|
||||
"Ancestor": {
|
||||
|
11
vendor/google.golang.org/api/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go
generated
vendored
11
vendor/google.golang.org/api/cloudresourcemanager/v1beta1/cloudresourcemanager-gen.go
generated
vendored
@ -2099,6 +2099,15 @@ type ProjectsCreateCall struct {
|
||||
// ResourceId, which must include both an ID and a type, such
|
||||
// as
|
||||
// project, folder, or organization.
|
||||
//
|
||||
// This method does not associate the new project with a billing
|
||||
// account.
|
||||
// You can set or update the billing account associated with a project
|
||||
// using
|
||||
// the
|
||||
// [`projects.updateBillingInfo`]
|
||||
// (/billing/reference/rest/v1/projects/up
|
||||
// dateBillingInfo) method.
|
||||
func (r *ProjectsService) Create(project *Project) *ProjectsCreateCall {
|
||||
c := &ProjectsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.project = project
|
||||
@ -2195,7 +2204,7 @@ func (c *ProjectsCreateCall) Do(opts ...googleapi.CallOption) (*Project, error)
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Creates a Project resource.\n\nInitially, the Project resource is owned by its creator exclusively.\nThe creator can later grant permission to others to read or update the\nProject.\n\nSeveral APIs are activated automatically for the Project, including\nGoogle Cloud Storage. The parent is identified by a specified\nResourceId, which must include both an ID and a type, such as\nproject, folder, or organization.",
|
||||
// "description": "Creates a Project resource.\n\nInitially, the Project resource is owned by its creator exclusively.\nThe creator can later grant permission to others to read or update the\nProject.\n\nSeveral APIs are activated automatically for the Project, including\nGoogle Cloud Storage. The parent is identified by a specified\nResourceId, which must include both an ID and a type, such as\nproject, folder, or organization.\n\nThis method does not associate the new project with a billing account.\nYou can set or update the billing account associated with a project using\nthe [`projects.updateBillingInfo`]\n(/billing/reference/rest/v1/projects/updateBillingInfo) method.",
|
||||
// "flatPath": "v1beta1/projects",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudresourcemanager.projects.create",
|
||||
|
17
vendor/google.golang.org/api/cloudresourcemanager/v2/cloudresourcemanager-api.json
generated
vendored
17
vendor/google.golang.org/api/cloudresourcemanager/v2/cloudresourcemanager-api.json
generated
vendored
@ -63,11 +63,6 @@
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"location": "query",
|
||||
@ -88,12 +83,6 @@
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"default": "true",
|
||||
"description": "Pretty-print response.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
@ -121,7 +110,7 @@
|
||||
"folders": {
|
||||
"methods": {
|
||||
"create": {
|
||||
"description": "Creates a Folder in the resource hierarchy.\nReturns an Operation which can be used to track the progress of the\nfolder creation workflow.\nUpon success the Operation.response field will be populated with the\ncreated Folder.\n\nIn order to succeed, the addition of this new Folder must not violate\nthe Folder naming, height or fanout constraints.\n\n+ The Folder's display_name must be distinct from all other Folder's that\nshare its parent.\n+ The addition of the Folder must not cause the active Folder hierarchy\nto exceed a height of 4. Note, the full active + deleted Folder hierarchy\nis allowed to reach a height of 8; this provides additional headroom when\nmoving folders that contain deleted folders.\n+ The addition of the Folder must not cause the total number of Folders\nunder its parent to exceed 100.\n\nIf the operation fails due to a folder constraint violation,\na PreconditionFailure explaining the violation will be returned.\nIf the failure occurs synchronously then the PreconditionFailure\nwill be returned via the Status.details field and if it occurs\nasynchronously then the PreconditionFailure will be returned\nvia the the Operation.error field.\n\nThe caller must have `resourcemanager.folders.create` permission on the\nidentified parent.",
|
||||
"description": "Creates a Folder in the resource hierarchy.\nReturns an Operation which can be used to track the progress of the\nfolder creation workflow.\nUpon success the Operation.response field will be populated with the\ncreated Folder.\n\nIn order to succeed, the addition of this new Folder must not violate\nthe Folder naming, height or fanout constraints.\n\n+ The Folder's display_name must be distinct from all other Folder's that\nshare its parent.\n+ The addition of the Folder must not cause the active Folder hierarchy\nto exceed a height of 4. Note, the full active + deleted Folder hierarchy\nis allowed to reach a height of 8; this provides additional headroom when\nmoving folders that contain deleted folders.\n+ The addition of the Folder must not cause the total number of Folders\nunder its parent to exceed 100.\n\nIf the operation fails due to a folder constraint violation, some errors\nmay be returned by the CreateFolder request, with status code\nFAILED_PRECONDITION and an error description. Other folder constraint\nviolations will be communicated in the Operation, with the specific\nPreconditionFailure returned via the details list in the Operation.error\nfield.\n\nThe caller must have `resourcemanager.folders.create` permission on the\nidentified parent.",
|
||||
"flatPath": "v2/folders",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudresourcemanager.folders.create",
|
||||
@ -430,7 +419,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180418",
|
||||
"revision": "20180611",
|
||||
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
|
||||
"schemas": {
|
||||
"AuditConfig": {
|
||||
@ -740,7 +729,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"query": {
|
||||
"description": "Search criteria used to select the Folders to return.\nIf no search criteria is specified then all accessible folders will be\nreturned.\n\nQuery expressions can be used to restrict results based upon displayName,\nlifecycleState and parent, where the operators `=`, `NOT`, `AND` and `OR`\ncan be used along with the suffix wildcard symbol `*`.\n\nSome example queries are:\n\n|Query | Description|\n|----- | -----------|\n|displayName=Test* | Folders whose display name starts with \"Test\".\n|lifecycleState=ACTIVE | Folders whose lifecycleState is ACTIVE.\n|parent=folders/123 | Folders whose parent is \"folders/123\".\n|parent=folders/123 AND lifecycleState=ACTIVE | Active folders whose parent is \"folders/123\".|",
|
||||
"description": "Search criteria used to select the Folders to return.\nIf no search criteria is specified then all accessible folders will be\nreturned.\n\nQuery expressions can be used to restrict results based upon displayName,\nlifecycleState and parent, where the operators `=`, `NOT`, `AND` and `OR`\ncan be used along with the suffix wildcard symbol `*`.\n\nThe displayName field in a query expression should use escaped quotes\nfor values that include whitespace to prevent unexpected behavior.\n\nSome example queries are:\n\n|Query | Description|\n|----- | -----------|\n|displayName=Test* | Folders whose display name starts with \"Test\".|\n|lifecycleState=ACTIVE | Folders whose lifecycleState is ACTIVE.|\n|parent=folders/123 | Folders whose parent is \"folders/123\".|\n|parent=folders/123 AND lifecycleState=ACTIVE | Active folders whose parent is \"folders/123\".|\n|displayName=\\\\\"Test String\\\\\"|Folders whose display name includes both \"Test\" and \"String\".|",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
|
33
vendor/google.golang.org/api/cloudresourcemanager/v2/cloudresourcemanager-gen.go
generated
vendored
33
vendor/google.golang.org/api/cloudresourcemanager/v2/cloudresourcemanager-gen.go
generated
vendored
@ -804,18 +804,25 @@ type SearchFoldersRequest struct {
|
||||
// `OR`
|
||||
// can be used along with the suffix wildcard symbol `*`.
|
||||
//
|
||||
// The displayName field in a query expression should use escaped
|
||||
// quotes
|
||||
// for values that include whitespace to prevent unexpected
|
||||
// behavior.
|
||||
//
|
||||
// Some example queries are:
|
||||
//
|
||||
// |Query | Description|
|
||||
// |----- | -----------|
|
||||
// |displayName=Test* | Folders whose display name starts with
|
||||
// "Test".
|
||||
// "Test".|
|
||||
// |lifecycleState=ACTIVE | Folders whose lifecycleState is
|
||||
// ACTIVE.
|
||||
// ACTIVE.|
|
||||
// |parent=folders/123 | Folders whose parent is
|
||||
// "folders/123".
|
||||
// "folders/123".|
|
||||
// |parent=folders/123 AND lifecycleState=ACTIVE | Active folders whose
|
||||
// parent is "folders/123".|
|
||||
// |displayName=\\"Test String\\"|Folders whose display name includes
|
||||
// both "Test" and "String".|
|
||||
Query string `json:"query,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "PageSize") to
|
||||
@ -1151,13 +1158,17 @@ type FoldersCreateCall struct {
|
||||
// Folders
|
||||
// under its parent to exceed 100.
|
||||
//
|
||||
// If the operation fails due to a folder constraint violation,
|
||||
// a PreconditionFailure explaining the violation will be returned.
|
||||
// If the failure occurs synchronously then the PreconditionFailure
|
||||
// will be returned via the Status.details field and if it
|
||||
// occurs
|
||||
// asynchronously then the PreconditionFailure will be returned
|
||||
// via the the Operation.error field.
|
||||
// If the operation fails due to a folder constraint violation, some
|
||||
// errors
|
||||
// may be returned by the CreateFolder request, with status
|
||||
// code
|
||||
// FAILED_PRECONDITION and an error description. Other folder
|
||||
// constraint
|
||||
// violations will be communicated in the Operation, with the
|
||||
// specific
|
||||
// PreconditionFailure returned via the details list in the
|
||||
// Operation.error
|
||||
// field.
|
||||
//
|
||||
// The caller must have `resourcemanager.folders.create` permission on
|
||||
// the
|
||||
@ -1260,7 +1271,7 @@ func (c *FoldersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Creates a Folder in the resource hierarchy.\nReturns an Operation which can be used to track the progress of the\nfolder creation workflow.\nUpon success the Operation.response field will be populated with the\ncreated Folder.\n\nIn order to succeed, the addition of this new Folder must not violate\nthe Folder naming, height or fanout constraints.\n\n+ The Folder's display_name must be distinct from all other Folder's that\nshare its parent.\n+ The addition of the Folder must not cause the active Folder hierarchy\nto exceed a height of 4. Note, the full active + deleted Folder hierarchy\nis allowed to reach a height of 8; this provides additional headroom when\nmoving folders that contain deleted folders.\n+ The addition of the Folder must not cause the total number of Folders\nunder its parent to exceed 100.\n\nIf the operation fails due to a folder constraint violation,\na PreconditionFailure explaining the violation will be returned.\nIf the failure occurs synchronously then the PreconditionFailure\nwill be returned via the Status.details field and if it occurs\nasynchronously then the PreconditionFailure will be returned\nvia the the Operation.error field.\n\nThe caller must have `resourcemanager.folders.create` permission on the\nidentified parent.",
|
||||
// "description": "Creates a Folder in the resource hierarchy.\nReturns an Operation which can be used to track the progress of the\nfolder creation workflow.\nUpon success the Operation.response field will be populated with the\ncreated Folder.\n\nIn order to succeed, the addition of this new Folder must not violate\nthe Folder naming, height or fanout constraints.\n\n+ The Folder's display_name must be distinct from all other Folder's that\nshare its parent.\n+ The addition of the Folder must not cause the active Folder hierarchy\nto exceed a height of 4. Note, the full active + deleted Folder hierarchy\nis allowed to reach a height of 8; this provides additional headroom when\nmoving folders that contain deleted folders.\n+ The addition of the Folder must not cause the total number of Folders\nunder its parent to exceed 100.\n\nIf the operation fails due to a folder constraint violation, some errors\nmay be returned by the CreateFolder request, with status code\nFAILED_PRECONDITION and an error description. Other folder constraint\nviolations will be communicated in the Operation, with the specific\nPreconditionFailure returned via the details list in the Operation.error\nfield.\n\nThe caller must have `resourcemanager.folders.create` permission on the\nidentified parent.",
|
||||
// "flatPath": "v2/folders",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudresourcemanager.folders.create",
|
||||
|
15
vendor/google.golang.org/api/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json
generated
vendored
15
vendor/google.golang.org/api/cloudresourcemanager/v2beta1/cloudresourcemanager-api.json
generated
vendored
@ -63,11 +63,6 @@
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"location": "query",
|
||||
@ -88,12 +83,6 @@
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"default": "true",
|
||||
"description": "Pretty-print response.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
@ -430,7 +419,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180418",
|
||||
"revision": "20180606",
|
||||
"rootUrl": "https://cloudresourcemanager.googleapis.com/",
|
||||
"schemas": {
|
||||
"AuditConfig": {
|
||||
@ -740,7 +729,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"query": {
|
||||
"description": "Search criteria used to select the Folders to return.\nIf no search criteria is specified then all accessible folders will be\nreturned.\n\nQuery expressions can be used to restrict results based upon displayName,\nlifecycleState and parent, where the operators `=`, `NOT`, `AND` and `OR`\ncan be used along with the suffix wildcard symbol `*`.\n\nSome example queries are:\n\n|Query | Description|\n|----- | -----------|\n|displayName=Test*|Folders whose display name starts with \"Test\".|\n|lifecycleState=ACTIVE|Folders whose lifecycleState is ACTIVE.|\n|parent=folders/123|Folders whose parent is \"folders/123\".|\n|parent=folders/123 AND lifecycleState=ACTIVE|Active folders whose parent is \"folders/123\".|",
|
||||
"description": "Search criteria used to select the Folders to return.\nIf no search criteria is specified then all accessible folders will be\nreturned.\n\nQuery expressions can be used to restrict results based upon displayName,\nlifecycleState and parent, where the operators `=`, `NOT`, `AND` and `OR`\ncan be used along with the suffix wildcard symbol `*`.\n\nThe displayName field in a query expression should use escaped quotes\nfor values that include whitespace to prevent unexpected behavior.\n\nSome example queries are:\n\n|Query | Description|\n|----- | -----------|\n|displayName=Test*|Folders whose display name starts with \"Test\".|\n|lifecycleState=ACTIVE|Folders whose lifecycleState is ACTIVE.|\n|parent=folders/123|Folders whose parent is \"folders/123\".|\n|parent=folders/123 AND lifecycleState=ACTIVE|Active folders whose parent is \"folders/123\".|\n|displayName=\\\\\"Test String\\\\\"|Folders whose display name includes both \"Test\" and \"String\".|",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
|
@ -804,6 +804,11 @@ type SearchFoldersRequest struct {
|
||||
// `OR`
|
||||
// can be used along with the suffix wildcard symbol `*`.
|
||||
//
|
||||
// The displayName field in a query expression should use escaped
|
||||
// quotes
|
||||
// for values that include whitespace to prevent unexpected
|
||||
// behavior.
|
||||
//
|
||||
// Some example queries are:
|
||||
//
|
||||
// |Query | Description|
|
||||
@ -816,6 +821,8 @@ type SearchFoldersRequest struct {
|
||||
// "folders/123".|
|
||||
// |parent=folders/123 AND lifecycleState=ACTIVE|Active folders whose
|
||||
// parent is "folders/123".|
|
||||
// |displayName=\\"Test String\\"|Folders whose display name includes
|
||||
// both "Test" and "String".|
|
||||
Query string `json:"query,omitempty"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "PageSize") to
|
||||
|
Reference in New Issue
Block a user