vendor: update all dependencies to latest versions
This commit is contained in:
Generated
Vendored
+1008
-1008
File diff suppressed because it is too large
Load Diff
+134
-122
@@ -158,8 +158,8 @@ type Ancestor struct {
|
||||
}
|
||||
|
||||
func (s *Ancestor) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Ancestor
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Ancestor
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -252,8 +252,8 @@ type AuditConfig struct {
|
||||
}
|
||||
|
||||
func (s *AuditConfig) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AuditConfig
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AuditConfig
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -313,8 +313,8 @@ type AuditLogConfig struct {
|
||||
}
|
||||
|
||||
func (s *AuditLogConfig) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AuditLogConfig
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AuditLogConfig
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -379,8 +379,8 @@ type Binding struct {
|
||||
}
|
||||
|
||||
func (s *Binding) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Binding
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Binding
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -474,8 +474,8 @@ type BooleanPolicy struct {
|
||||
}
|
||||
|
||||
func (s *BooleanPolicy) MarshalJSON() ([]byte, error) {
|
||||
type noMethod BooleanPolicy
|
||||
raw := noMethod(*s)
|
||||
type NoMethod BooleanPolicy
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -507,8 +507,8 @@ type ClearOrgPolicyRequest struct {
|
||||
}
|
||||
|
||||
func (s *ClearOrgPolicyRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ClearOrgPolicyRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ClearOrgPolicyRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -598,8 +598,8 @@ type Constraint struct {
|
||||
}
|
||||
|
||||
func (s *Constraint) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Constraint
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Constraint
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -662,8 +662,8 @@ type FolderOperation struct {
|
||||
}
|
||||
|
||||
func (s *FolderOperation) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FolderOperation
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FolderOperation
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -715,8 +715,8 @@ type FolderOperationError struct {
|
||||
}
|
||||
|
||||
func (s *FolderOperationError) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FolderOperationError
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FolderOperationError
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -757,8 +757,8 @@ type GetAncestryResponse struct {
|
||||
}
|
||||
|
||||
func (s *GetAncestryResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod GetAncestryResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod GetAncestryResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -787,8 +787,8 @@ type GetEffectiveOrgPolicyRequest struct {
|
||||
}
|
||||
|
||||
func (s *GetEffectiveOrgPolicyRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod GetEffectiveOrgPolicyRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod GetEffectiveOrgPolicyRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -819,8 +819,8 @@ type GetOrgPolicyRequest struct {
|
||||
}
|
||||
|
||||
func (s *GetOrgPolicyRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod GetOrgPolicyRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod GetOrgPolicyRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -894,8 +894,8 @@ type Lien struct {
|
||||
}
|
||||
|
||||
func (s *Lien) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Lien
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Lien
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -935,8 +935,8 @@ type ListAvailableOrgPolicyConstraintsRequest struct {
|
||||
}
|
||||
|
||||
func (s *ListAvailableOrgPolicyConstraintsRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListAvailableOrgPolicyConstraintsRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListAvailableOrgPolicyConstraintsRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -978,8 +978,8 @@ type ListAvailableOrgPolicyConstraintsResponse struct {
|
||||
}
|
||||
|
||||
func (s *ListAvailableOrgPolicyConstraintsResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListAvailableOrgPolicyConstraintsResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListAvailableOrgPolicyConstraintsResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1011,8 +1011,8 @@ type ListConstraint struct {
|
||||
}
|
||||
|
||||
func (s *ListConstraint) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListConstraint
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListConstraint
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1048,8 +1048,8 @@ type ListLiensResponse struct {
|
||||
}
|
||||
|
||||
func (s *ListLiensResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListLiensResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListLiensResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1087,8 +1087,8 @@ type ListOrgPoliciesRequest struct {
|
||||
}
|
||||
|
||||
func (s *ListOrgPoliciesRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListOrgPoliciesRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListOrgPoliciesRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1128,8 +1128,8 @@ type ListOrgPoliciesResponse struct {
|
||||
}
|
||||
|
||||
func (s *ListOrgPoliciesResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListOrgPoliciesResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListOrgPoliciesResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1306,8 +1306,8 @@ type ListPolicy struct {
|
||||
}
|
||||
|
||||
func (s *ListPolicy) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListPolicy
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListPolicy
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1366,8 +1366,8 @@ type ListProjectsResponse struct {
|
||||
}
|
||||
|
||||
func (s *ListProjectsResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListProjectsResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListProjectsResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1441,8 +1441,8 @@ type Operation struct {
|
||||
}
|
||||
|
||||
func (s *Operation) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Operation
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Operation
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1528,8 +1528,8 @@ type OrgPolicy struct {
|
||||
}
|
||||
|
||||
func (s *OrgPolicy) MarshalJSON() ([]byte, error) {
|
||||
type noMethod OrgPolicy
|
||||
raw := noMethod(*s)
|
||||
type NoMethod OrgPolicy
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1597,8 +1597,8 @@ type Organization struct {
|
||||
}
|
||||
|
||||
func (s *Organization) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Organization
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Organization
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1633,8 +1633,8 @@ type OrganizationOwner struct {
|
||||
}
|
||||
|
||||
func (s *OrganizationOwner) MarshalJSON() ([]byte, error) {
|
||||
type noMethod OrganizationOwner
|
||||
raw := noMethod(*s)
|
||||
type NoMethod OrganizationOwner
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1673,7 +1673,7 @@ func (s *OrganizationOwner) MarshalJSON() ([]byte, error) {
|
||||
// }
|
||||
//
|
||||
// For a description of IAM and its features, see the
|
||||
// [IAM developer's guide](https://cloud.google.com/iam).
|
||||
// [IAM developer's guide](https://cloud.google.com/iam/docs).
|
||||
type Policy struct {
|
||||
// AuditConfigs: Specifies cloud audit logging configuration for this
|
||||
// policy.
|
||||
@@ -1703,7 +1703,7 @@ type Policy struct {
|
||||
// policy is overwritten blindly.
|
||||
Etag string `json:"etag,omitempty"`
|
||||
|
||||
// Version: Version of the `Policy`. The default version is 0.
|
||||
// Version: Deprecated.
|
||||
Version int64 `json:"version,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
@@ -1728,8 +1728,8 @@ type Policy struct {
|
||||
}
|
||||
|
||||
func (s *Policy) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Policy
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Policy
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1797,10 +1797,10 @@ type Project struct {
|
||||
|
||||
// Parent: An optional reference to a parent Resource.
|
||||
//
|
||||
// The only supported parent type is "organization". Once set, the
|
||||
// parent
|
||||
// cannot be modified. The `parent` can be set on creation or using
|
||||
// Supported parent types include "organization" and "folder". Once set,
|
||||
// the
|
||||
// parent cannot be cleared. The `parent` can be set on creation or
|
||||
// using the
|
||||
// `UpdateProject` method; the end user must have
|
||||
// the
|
||||
// `resourcemanager.projects.create` permission on the
|
||||
@@ -1846,8 +1846,8 @@ type Project struct {
|
||||
}
|
||||
|
||||
func (s *Project) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Project
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Project
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1888,8 +1888,8 @@ type ProjectCreationStatus struct {
|
||||
}
|
||||
|
||||
func (s *ProjectCreationStatus) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ProjectCreationStatus
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ProjectCreationStatus
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1929,8 +1929,8 @@ type ResourceId struct {
|
||||
}
|
||||
|
||||
func (s *ResourceId) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ResourceId
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ResourceId
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2012,8 +2012,8 @@ type SearchOrganizationsRequest struct {
|
||||
}
|
||||
|
||||
func (s *SearchOrganizationsRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SearchOrganizationsRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SearchOrganizationsRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2058,8 +2058,8 @@ type SearchOrganizationsResponse struct {
|
||||
}
|
||||
|
||||
func (s *SearchOrganizationsResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SearchOrganizationsResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SearchOrganizationsResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2100,8 +2100,8 @@ type SetIamPolicyRequest struct {
|
||||
}
|
||||
|
||||
func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SetIamPolicyRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SetIamPolicyRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2129,8 +2129,8 @@ type SetOrgPolicyRequest struct {
|
||||
}
|
||||
|
||||
func (s *SetOrgPolicyRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SetOrgPolicyRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SetOrgPolicyRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2248,8 +2248,8 @@ type Status struct {
|
||||
}
|
||||
|
||||
func (s *Status) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Status
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Status
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2283,8 +2283,8 @@ type TestIamPermissionsRequest struct {
|
||||
}
|
||||
|
||||
func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TestIamPermissionsRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TestIamPermissionsRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2318,8 +2318,8 @@ type TestIamPermissionsResponse struct {
|
||||
}
|
||||
|
||||
func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TestIamPermissionsResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TestIamPermissionsResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -2429,7 +2429,7 @@ func (c *FoldersClearOrgPolicyCall) Do(opts ...googleapi.CallOption) (*Empty, er
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2569,7 +2569,7 @@ func (c *FoldersGetEffectiveOrgPolicyCall) Do(opts ...googleapi.CallOption) (*Or
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2713,7 +2713,7 @@ func (c *FoldersGetOrgPolicyCall) Do(opts ...googleapi.CallOption) (*OrgPolicy,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2852,7 +2852,7 @@ func (c *FoldersListAvailableOrgPolicyConstraintsCall) Do(opts ...googleapi.Call
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3010,7 +3010,7 @@ func (c *FoldersListOrgPoliciesCall) Do(opts ...googleapi.CallOption) (*ListOrgP
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3173,7 +3173,7 @@ func (c *FoldersSetOrgPolicyCall) Do(opts ...googleapi.CallOption) (*OrgPolicy,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3313,7 +3313,7 @@ func (c *LiensCreateCall) Do(opts ...googleapi.CallOption) (*Lien, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3438,7 +3438,7 @@ func (c *LiensDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3602,7 +3602,7 @@ func (c *LiensListCall) Do(opts ...googleapi.CallOption) (*ListLiensResponse, er
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3774,7 +3774,7 @@ func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3907,7 +3907,7 @@ func (c *OrganizationsClearOrgPolicyCall) Do(opts ...googleapi.CallOption) (*Emp
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -4050,7 +4050,7 @@ func (c *OrganizationsGetCall) Do(opts ...googleapi.CallOption) (*Organization,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -4188,7 +4188,7 @@ func (c *OrganizationsGetEffectiveOrgPolicyCall) Do(opts ...googleapi.CallOption
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -4334,7 +4334,7 @@ func (c *OrganizationsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Polic
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -4478,7 +4478,7 @@ func (c *OrganizationsGetOrgPolicyCall) Do(opts ...googleapi.CallOption) (*OrgPo
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -4617,7 +4617,7 @@ func (c *OrganizationsListAvailableOrgPolicyConstraintsCall) Do(opts ...googleap
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -4775,7 +4775,7 @@ func (c *OrganizationsListOrgPoliciesCall) Do(opts ...googleapi.CallOption) (*Li
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -4937,7 +4937,7 @@ func (c *OrganizationsSearchCall) Do(opts ...googleapi.CallOption) (*SearchOrgan
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -5093,7 +5093,7 @@ func (c *OrganizationsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Polic
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -5234,7 +5234,7 @@ func (c *OrganizationsSetOrgPolicyCall) Do(opts ...googleapi.CallOption) (*OrgPo
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -5374,7 +5374,7 @@ func (c *OrganizationsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -5510,7 +5510,7 @@ func (c *ProjectsClearOrgPolicyCall) Do(opts ...googleapi.CallOption) (*Empty, e
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -5658,7 +5658,7 @@ func (c *ProjectsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -5801,7 +5801,7 @@ func (c *ProjectsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -5942,7 +5942,7 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -6079,7 +6079,7 @@ func (c *ProjectsGetAncestryCall) Do(opts ...googleapi.CallOption) (*GetAncestry
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -6219,7 +6219,7 @@ func (c *ProjectsGetEffectiveOrgPolicyCall) Do(opts ...googleapi.CallOption) (*O
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -6273,7 +6273,11 @@ type ProjectsGetIamPolicyCall struct {
|
||||
//
|
||||
// Authorization requires the Google IAM
|
||||
// permission
|
||||
// `resourcemanager.projects.getIamPolicy` on the project
|
||||
// `resourcemanager.projects.getIamPolicy` on the project.
|
||||
//
|
||||
// For additional information about resource structure and
|
||||
// identification,
|
||||
// see [Resource Names](/apis/design/resource_names).
|
||||
func (r *ProjectsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsGetIamPolicyCall {
|
||||
c := &ProjectsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.resource = resource
|
||||
@@ -6362,12 +6366,12 @@ func (c *ProjectsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, er
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Returns the IAM access control policy for the specified Project.\nPermission is denied if the policy or the resource does not exist.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.getIamPolicy` on the project",
|
||||
// "description": "Returns the IAM access control policy for the specified Project.\nPermission is denied if the policy or the resource does not exist.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.getIamPolicy` on the project.\n\nFor additional information about resource structure and identification,\nsee [Resource Names](/apis/design/resource_names).",
|
||||
// "flatPath": "v1/projects/{resource}:getIamPolicy",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudresourcemanager.projects.getIamPolicy",
|
||||
@@ -6505,7 +6509,7 @@ func (c *ProjectsGetOrgPolicyCall) Do(opts ...googleapi.CallOption) (*OrgPolicy,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -6555,7 +6559,14 @@ type ProjectsListCall struct {
|
||||
// the
|
||||
// specified filter. This method returns Projects in an unspecified
|
||||
// order.
|
||||
// New Projects do not necessarily appear at the end of the list.
|
||||
// This method is eventually consistent with project mutations; this
|
||||
// means
|
||||
// that a newly created project may not appear in the results or
|
||||
// recent
|
||||
// updates to an existing project may not be reflected in the results.
|
||||
// To
|
||||
// retrieve the latest state of a project, use the
|
||||
// GetProject method.
|
||||
func (r *ProjectsService) List() *ProjectsListCall {
|
||||
c := &ProjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
return c
|
||||
@@ -6711,12 +6722,12 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ListProjectsRespon
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Lists Projects that are visible to the user and satisfy the\nspecified filter. This method returns Projects in an unspecified order.\nNew Projects do not necessarily appear at the end of the list.",
|
||||
// "description": "Lists Projects that are visible to the user and satisfy the\nspecified filter. This method returns Projects in an unspecified order.\nThis method is eventually consistent with project mutations; this means\nthat a newly created project may not appear in the results or recent\nupdates to an existing project may not be reflected in the results. To\nretrieve the latest state of a project, use the\nGetProject method.",
|
||||
// "flatPath": "v1/projects",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "cloudresourcemanager.projects.list",
|
||||
@@ -6875,7 +6886,7 @@ func (c *ProjectsListAvailableOrgPolicyConstraintsCall) Do(opts ...googleapi.Cal
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -7033,7 +7044,7 @@ func (c *ProjectsListOrgPoliciesCall) Do(opts ...googleapi.CallOption) (*ListOrg
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -7102,7 +7113,7 @@ type ProjectsSetIamPolicyCall struct {
|
||||
}
|
||||
|
||||
// SetIamPolicy: Sets the IAM access control policy for the specified
|
||||
// Project. Replaces
|
||||
// Project. Overwrites
|
||||
// any existing policy.
|
||||
//
|
||||
// The following constraints apply when using `setIamPolicy()`:
|
||||
@@ -7148,8 +7159,9 @@ type ProjectsSetIamPolicyCall struct {
|
||||
// is
|
||||
// rectified.
|
||||
//
|
||||
// + Calling this method requires enabling the App Engine Admin
|
||||
// API.
|
||||
// + This method will replace the existing policy, and cannot be used
|
||||
// to
|
||||
// append additional IAM settings.
|
||||
//
|
||||
// Note: Removing service accounts from policies or changing their
|
||||
// roles
|
||||
@@ -7250,12 +7262,12 @@ func (c *ProjectsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, er
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Sets the IAM access control policy for the specified Project. Replaces\nany existing policy.\n\nThe following constraints apply when using `setIamPolicy()`:\n\n+ Project does not support `allUsers` and `allAuthenticatedUsers` as\n`members` in a `Binding` of a `Policy`.\n\n+ The owner role can be granted only to `user` and `serviceAccount`.\n\n+ Service accounts can be made owners of a project directly\nwithout any restrictions. However, to be added as an owner, a user must be\ninvited via Cloud Platform console and must accept the invitation.\n\n+ A user cannot be granted the owner role using `setIamPolicy()`. The user\nmust be granted the owner role using the Cloud Platform Console and must\nexplicitly accept the invitation.\n\n+ Invitations to grant the owner role cannot be sent using\n`setIamPolicy()`;\nthey must be sent only using the Cloud Platform Console.\n\n+ Membership changes that leave the project without any owners that have\naccepted the Terms of Service (ToS) will be rejected.\n\n+ If the project is not part of an organization, there must be at least\none owner who has accepted the Terms of Service (ToS) agreement in the\npolicy. Calling `setIamPolicy()` to remove the last ToS-accepted owner\nfrom the policy will fail. This restriction also applies to legacy\nprojects that no longer have owners who have accepted the ToS. Edits to\nIAM policies will be rejected until the lack of a ToS-accepting owner is\nrectified.\n\n+ Calling this method requires enabling the App Engine Admin API.\n\nNote: Removing service accounts from policies or changing their roles\ncan render services completely inoperable. It is important to understand\nhow the service account is being used before removing or updating its\nroles.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.setIamPolicy` on the project",
|
||||
// "description": "Sets the IAM access control policy for the specified Project. Overwrites\nany existing policy.\n\nThe following constraints apply when using `setIamPolicy()`:\n\n+ Project does not support `allUsers` and `allAuthenticatedUsers` as\n`members` in a `Binding` of a `Policy`.\n\n+ The owner role can be granted only to `user` and `serviceAccount`.\n\n+ Service accounts can be made owners of a project directly\nwithout any restrictions. However, to be added as an owner, a user must be\ninvited via Cloud Platform console and must accept the invitation.\n\n+ A user cannot be granted the owner role using `setIamPolicy()`. The user\nmust be granted the owner role using the Cloud Platform Console and must\nexplicitly accept the invitation.\n\n+ Invitations to grant the owner role cannot be sent using\n`setIamPolicy()`;\nthey must be sent only using the Cloud Platform Console.\n\n+ Membership changes that leave the project without any owners that have\naccepted the Terms of Service (ToS) will be rejected.\n\n+ If the project is not part of an organization, there must be at least\none owner who has accepted the Terms of Service (ToS) agreement in the\npolicy. Calling `setIamPolicy()` to remove the last ToS-accepted owner\nfrom the policy will fail. This restriction also applies to legacy\nprojects that no longer have owners who have accepted the ToS. Edits to\nIAM policies will be rejected until the lack of a ToS-accepting owner is\nrectified.\n\n+ This method will replace the existing policy, and cannot be used to\nappend additional IAM settings.\n\nNote: Removing service accounts from policies or changing their roles\ncan render services completely inoperable. It is important to understand\nhow the service account is being used before removing or updating its\nroles.\n\nAuthorization requires the Google IAM permission\n`resourcemanager.projects.setIamPolicy` on the project",
|
||||
// "flatPath": "v1/projects/{resource}:setIamPolicy",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudresourcemanager.projects.setIamPolicy",
|
||||
@@ -7390,7 +7402,7 @@ func (c *ProjectsSetOrgPolicyCall) Do(opts ...googleapi.CallOption) (*OrgPolicy,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -7528,7 +7540,7 @@ func (c *ProjectsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*Test
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -7671,7 +7683,7 @@ func (c *ProjectsUndeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -7809,7 +7821,7 @@ func (c *ProjectsUpdateCall) Do(opts ...googleapi.CallOption) (*Project, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
|
||||
Generated
Vendored
+729
-729
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+77
-65
@@ -122,8 +122,8 @@ type Ancestor struct {
|
||||
}
|
||||
|
||||
func (s *Ancestor) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Ancestor
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Ancestor
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -216,8 +216,8 @@ type AuditConfig struct {
|
||||
}
|
||||
|
||||
func (s *AuditConfig) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AuditConfig
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AuditConfig
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -277,8 +277,8 @@ type AuditLogConfig struct {
|
||||
}
|
||||
|
||||
func (s *AuditLogConfig) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AuditLogConfig
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AuditLogConfig
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -343,8 +343,8 @@ type Binding struct {
|
||||
}
|
||||
|
||||
func (s *Binding) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Binding
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Binding
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -407,8 +407,8 @@ type FolderOperation struct {
|
||||
}
|
||||
|
||||
func (s *FolderOperation) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FolderOperation
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FolderOperation
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -460,8 +460,8 @@ type FolderOperationError struct {
|
||||
}
|
||||
|
||||
func (s *FolderOperationError) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FolderOperationError
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FolderOperationError
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -502,8 +502,8 @@ type GetAncestryResponse struct {
|
||||
}
|
||||
|
||||
func (s *GetAncestryResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod GetAncestryResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod GetAncestryResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -551,8 +551,8 @@ type ListOrganizationsResponse struct {
|
||||
}
|
||||
|
||||
func (s *ListOrganizationsResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListOrganizationsResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListOrganizationsResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -611,8 +611,8 @@ type ListProjectsResponse struct {
|
||||
}
|
||||
|
||||
func (s *ListProjectsResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListProjectsResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListProjectsResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -687,8 +687,8 @@ type Organization struct {
|
||||
}
|
||||
|
||||
func (s *Organization) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Organization
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Organization
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -723,8 +723,8 @@ type OrganizationOwner struct {
|
||||
}
|
||||
|
||||
func (s *OrganizationOwner) MarshalJSON() ([]byte, error) {
|
||||
type noMethod OrganizationOwner
|
||||
raw := noMethod(*s)
|
||||
type NoMethod OrganizationOwner
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -763,7 +763,7 @@ func (s *OrganizationOwner) MarshalJSON() ([]byte, error) {
|
||||
// }
|
||||
//
|
||||
// For a description of IAM and its features, see the
|
||||
// [IAM developer's guide](https://cloud.google.com/iam).
|
||||
// [IAM developer's guide](https://cloud.google.com/iam/docs).
|
||||
type Policy struct {
|
||||
// AuditConfigs: Specifies cloud audit logging configuration for this
|
||||
// policy.
|
||||
@@ -793,7 +793,7 @@ type Policy struct {
|
||||
// policy is overwritten blindly.
|
||||
Etag string `json:"etag,omitempty"`
|
||||
|
||||
// Version: Version of the `Policy`. The default version is 0.
|
||||
// Version: Deprecated.
|
||||
Version int64 `json:"version,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
@@ -818,8 +818,8 @@ type Policy struct {
|
||||
}
|
||||
|
||||
func (s *Policy) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Policy
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Policy
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -886,10 +886,10 @@ type Project struct {
|
||||
|
||||
// Parent: An optional reference to a parent Resource.
|
||||
//
|
||||
// The only supported parent type is "organization". Once set, the
|
||||
// parent
|
||||
// cannot be modified. The `parent` can be set on creation or using
|
||||
// Supported parent types include "organization" and "folder". Once set,
|
||||
// the
|
||||
// parent cannot be cleared. The `parent` can be set on creation or
|
||||
// using the
|
||||
// `UpdateProject` method; the end user must have
|
||||
// the
|
||||
// `resourcemanager.projects.create` permission on the
|
||||
@@ -935,8 +935,8 @@ type Project struct {
|
||||
}
|
||||
|
||||
func (s *Project) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Project
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Project
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -977,8 +977,8 @@ type ProjectCreationStatus struct {
|
||||
}
|
||||
|
||||
func (s *ProjectCreationStatus) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ProjectCreationStatus
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ProjectCreationStatus
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1019,8 +1019,8 @@ type ResourceId struct {
|
||||
}
|
||||
|
||||
func (s *ResourceId) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ResourceId
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ResourceId
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1061,8 +1061,8 @@ type SetIamPolicyRequest struct {
|
||||
}
|
||||
|
||||
func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SetIamPolicyRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SetIamPolicyRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1096,8 +1096,8 @@ type TestIamPermissionsRequest struct {
|
||||
}
|
||||
|
||||
func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TestIamPermissionsRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TestIamPermissionsRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1131,8 +1131,8 @@ type TestIamPermissionsResponse struct {
|
||||
}
|
||||
|
||||
func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TestIamPermissionsResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TestIamPermissionsResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1258,7 +1258,7 @@ func (c *OrganizationsGetCall) Do(opts ...googleapi.CallOption) (*Organization,
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -1400,7 +1400,7 @@ func (c *OrganizationsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Polic
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -1584,7 +1584,7 @@ func (c *OrganizationsListCall) Do(opts ...googleapi.CallOption) (*ListOrganizat
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -1749,7 +1749,7 @@ func (c *OrganizationsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Polic
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -1887,7 +1887,7 @@ func (c *OrganizationsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2024,7 +2024,7 @@ func (c *OrganizationsUpdateCall) Do(opts ...googleapi.CallOption) (*Organizatio
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2171,7 +2171,7 @@ func (c *ProjectsCreateCall) Do(opts ...googleapi.CallOption) (*Project, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2321,7 +2321,7 @@ func (c *ProjectsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2462,7 +2462,7 @@ func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*Project, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2599,7 +2599,7 @@ func (c *ProjectsGetAncestryCall) Do(opts ...googleapi.CallOption) (*GetAncestry
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2647,7 +2647,12 @@ type ProjectsGetIamPolicyCall struct {
|
||||
|
||||
// GetIamPolicy: Returns the IAM access control policy for the specified
|
||||
// Project.
|
||||
// Permission is denied if the policy or the resource does not exist.
|
||||
// Permission is denied if the policy or the resource does not
|
||||
// exist.
|
||||
//
|
||||
// For additional information about resource structure and
|
||||
// identification,
|
||||
// see [Resource Names](/apis/design/resource_names).
|
||||
func (r *ProjectsService) GetIamPolicy(resource string, getiampolicyrequest *GetIamPolicyRequest) *ProjectsGetIamPolicyCall {
|
||||
c := &ProjectsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.resource = resource
|
||||
@@ -2736,12 +2741,12 @@ func (c *ProjectsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, er
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Returns the IAM access control policy for the specified Project.\nPermission is denied if the policy or the resource does not exist.",
|
||||
// "description": "Returns the IAM access control policy for the specified Project.\nPermission is denied if the policy or the resource does not exist.\n\nFor additional information about resource structure and identification,\nsee [Resource Names](/apis/design/resource_names).",
|
||||
// "flatPath": "v1beta1/projects/{resource}:getIamPolicy",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudresourcemanager.projects.getIamPolicy",
|
||||
@@ -2785,7 +2790,13 @@ type ProjectsListCall struct {
|
||||
// the
|
||||
// specified filter. This method returns Projects in an unspecified
|
||||
// order.
|
||||
// New Projects do not necessarily appear at the end of the list.
|
||||
// This method is eventually consistent with project mutations; this
|
||||
// means
|
||||
// that a newly created project may not appear in the results or
|
||||
// recent
|
||||
// updates to an existing project may not be reflected in the results.
|
||||
// To
|
||||
// retrieve the latest state of a project, use the GetProjectmethod.
|
||||
func (r *ProjectsService) List() *ProjectsListCall {
|
||||
c := &ProjectsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
return c
|
||||
@@ -2941,12 +2952,12 @@ func (c *ProjectsListCall) Do(opts ...googleapi.CallOption) (*ListProjectsRespon
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Lists Projects that are visible to the user and satisfy the\nspecified filter. This method returns Projects in an unspecified order.\nNew Projects do not necessarily appear at the end of the list.",
|
||||
// "description": "Lists Projects that are visible to the user and satisfy the\nspecified filter. This method returns Projects in an unspecified order.\nThis method is eventually consistent with project mutations; this means\nthat a newly created project may not appear in the results or recent\nupdates to an existing project may not be reflected in the results. To\nretrieve the latest state of a project, use the GetProjectmethod.",
|
||||
// "flatPath": "v1beta1/projects",
|
||||
// "httpMethod": "GET",
|
||||
// "id": "cloudresourcemanager.projects.list",
|
||||
@@ -3014,7 +3025,7 @@ type ProjectsSetIamPolicyCall struct {
|
||||
}
|
||||
|
||||
// SetIamPolicy: Sets the IAM access control policy for the specified
|
||||
// Project. Replaces
|
||||
// Project. Overwrites
|
||||
// any existing policy.
|
||||
//
|
||||
// The following constraints apply when using `setIamPolicy()`:
|
||||
@@ -3060,8 +3071,9 @@ type ProjectsSetIamPolicyCall struct {
|
||||
// is
|
||||
// rectified.
|
||||
//
|
||||
// + Calling this method requires enabling the App Engine Admin
|
||||
// API.
|
||||
// + This method will replace the existing policy, and cannot be used
|
||||
// to
|
||||
// append additional IAM settings.
|
||||
//
|
||||
// Note: Removing service accounts from policies or changing their
|
||||
// roles
|
||||
@@ -3158,12 +3170,12 @@ func (c *ProjectsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, er
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Sets the IAM access control policy for the specified Project. Replaces\nany existing policy.\n\nThe following constraints apply when using `setIamPolicy()`:\n\n+ Project does not support `allUsers` and `allAuthenticatedUsers` as\n`members` in a `Binding` of a `Policy`.\n\n+ The owner role can be granted only to `user` and `serviceAccount`.\n\n+ Service accounts can be made owners of a project directly\nwithout any restrictions. However, to be added as an owner, a user must be\ninvited via Cloud Platform console and must accept the invitation.\n\n+ A user cannot be granted the owner role using `setIamPolicy()`. The user\nmust be granted the owner role using the Cloud Platform Console and must\nexplicitly accept the invitation.\n\n+ Invitations to grant the owner role cannot be sent using\n`setIamPolicy()`; they must be sent only using the Cloud Platform Console.\n\n+ Membership changes that leave the project without any owners that have\naccepted the Terms of Service (ToS) will be rejected.\n\n+ If the project is not part of an organization, there must be at least\none owner who has accepted the Terms of Service (ToS) agreement in the\npolicy. Calling `setIamPolicy()` to remove the last ToS-accepted owner\nfrom the policy will fail. This restriction also applies to legacy\nprojects that no longer have owners who have accepted the ToS. Edits to\nIAM policies will be rejected until the lack of a ToS-accepting owner is\nrectified.\n\n+ Calling this method requires enabling the App Engine Admin API.\n\nNote: Removing service accounts from policies or changing their roles\ncan render services completely inoperable. It is important to understand\nhow the service account is being used before removing or updating its\nroles.",
|
||||
// "description": "Sets the IAM access control policy for the specified Project. Overwrites\nany existing policy.\n\nThe following constraints apply when using `setIamPolicy()`:\n\n+ Project does not support `allUsers` and `allAuthenticatedUsers` as\n`members` in a `Binding` of a `Policy`.\n\n+ The owner role can be granted only to `user` and `serviceAccount`.\n\n+ Service accounts can be made owners of a project directly\nwithout any restrictions. However, to be added as an owner, a user must be\ninvited via Cloud Platform console and must accept the invitation.\n\n+ A user cannot be granted the owner role using `setIamPolicy()`. The user\nmust be granted the owner role using the Cloud Platform Console and must\nexplicitly accept the invitation.\n\n+ Invitations to grant the owner role cannot be sent using\n`setIamPolicy()`; they must be sent only using the Cloud Platform Console.\n\n+ Membership changes that leave the project without any owners that have\naccepted the Terms of Service (ToS) will be rejected.\n\n+ If the project is not part of an organization, there must be at least\none owner who has accepted the Terms of Service (ToS) agreement in the\npolicy. Calling `setIamPolicy()` to remove the last ToS-accepted owner\nfrom the policy will fail. This restriction also applies to legacy\nprojects that no longer have owners who have accepted the ToS. Edits to\nIAM policies will be rejected until the lack of a ToS-accepting owner is\nrectified.\n\n+ This method will replace the existing policy, and cannot be used to\nappend additional IAM settings.\n\nNote: Removing service accounts from policies or changing their roles\ncan render services completely inoperable. It is important to understand\nhow the service account is being used before removing or updating its\nroles.",
|
||||
// "flatPath": "v1beta1/projects/{resource}:setIamPolicy",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudresourcemanager.projects.setIamPolicy",
|
||||
@@ -3293,7 +3305,7 @@ func (c *ProjectsTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*Test
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3436,7 +3448,7 @@ func (c *ProjectsUndeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -3574,7 +3586,7 @@ func (c *ProjectsUpdateCall) Do(opts ...googleapi.CallOption) (*Project, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
|
||||
Generated
Vendored
+415
-415
File diff suppressed because it is too large
Load Diff
Generated
Vendored
+86
-82
@@ -176,8 +176,8 @@ type AuditConfig struct {
|
||||
}
|
||||
|
||||
func (s *AuditConfig) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AuditConfig
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AuditConfig
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -237,8 +237,8 @@ type AuditLogConfig struct {
|
||||
}
|
||||
|
||||
func (s *AuditLogConfig) MarshalJSON() ([]byte, error) {
|
||||
type noMethod AuditLogConfig
|
||||
raw := noMethod(*s)
|
||||
type NoMethod AuditLogConfig
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -303,8 +303,8 @@ type Binding struct {
|
||||
}
|
||||
|
||||
func (s *Binding) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Binding
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Binding
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -333,7 +333,8 @@ type Folder struct {
|
||||
// LifecycleState: Output only. The lifecycle state of the
|
||||
// folder.
|
||||
// Updates to the lifecycle_state must be performed via
|
||||
// [DeleteFolder] and [UndeleteFolder].
|
||||
// DeleteFolder and
|
||||
// UndeleteFolder.
|
||||
//
|
||||
// Possible values:
|
||||
// "LIFECYCLE_STATE_UNSPECIFIED" - Unspecified state.
|
||||
@@ -347,7 +348,8 @@ type Folder struct {
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// Parent: The Folder’s parent's resource name.
|
||||
// Updates to the folder's parent must be performed via [MoveFolders].
|
||||
// Updates to the folder's parent must be performed via
|
||||
// MoveFolder.
|
||||
Parent string `json:"parent,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
@@ -372,8 +374,8 @@ type Folder struct {
|
||||
}
|
||||
|
||||
func (s *Folder) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Folder
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Folder
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -418,8 +420,8 @@ type FolderOperation struct {
|
||||
}
|
||||
|
||||
func (s *FolderOperation) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FolderOperation
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FolderOperation
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -471,8 +473,8 @@ type FolderOperationError struct {
|
||||
}
|
||||
|
||||
func (s *FolderOperationError) MarshalJSON() ([]byte, error) {
|
||||
type noMethod FolderOperationError
|
||||
raw := noMethod(*s)
|
||||
type NoMethod FolderOperationError
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -515,8 +517,8 @@ type ListFoldersResponse struct {
|
||||
}
|
||||
|
||||
func (s *ListFoldersResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ListFoldersResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ListFoldersResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -548,8 +550,8 @@ type MoveFolderRequest struct {
|
||||
}
|
||||
|
||||
func (s *MoveFolderRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod MoveFolderRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod MoveFolderRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -623,8 +625,8 @@ type Operation struct {
|
||||
}
|
||||
|
||||
func (s *Operation) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Operation
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Operation
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -663,7 +665,7 @@ func (s *Operation) MarshalJSON() ([]byte, error) {
|
||||
// }
|
||||
//
|
||||
// For a description of IAM and its features, see the
|
||||
// [IAM developer's guide](https://cloud.google.com/iam).
|
||||
// [IAM developer's guide](https://cloud.google.com/iam/docs).
|
||||
type Policy struct {
|
||||
// AuditConfigs: Specifies cloud audit logging configuration for this
|
||||
// policy.
|
||||
@@ -693,7 +695,7 @@ type Policy struct {
|
||||
// policy is overwritten blindly.
|
||||
Etag string `json:"etag,omitempty"`
|
||||
|
||||
// Version: Version of the `Policy`. The default version is 0.
|
||||
// Version: Deprecated.
|
||||
Version int64 `json:"version,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
@@ -718,8 +720,8 @@ type Policy struct {
|
||||
}
|
||||
|
||||
func (s *Policy) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Policy
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Policy
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -760,8 +762,8 @@ type ProjectCreationStatus struct {
|
||||
}
|
||||
|
||||
func (s *ProjectCreationStatus) MarshalJSON() ([]byte, error) {
|
||||
type noMethod ProjectCreationStatus
|
||||
raw := noMethod(*s)
|
||||
type NoMethod ProjectCreationStatus
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -789,19 +791,17 @@ type SearchFoldersRequest struct {
|
||||
// `OR`
|
||||
// can be used along with the suffix wildcard symbol `*`.
|
||||
//
|
||||
// Some example queries
|
||||
// are:
|
||||
// |Query|Description|
|
||||
// |------|-----------|
|
||||
// |displayName=Test*|Folde
|
||||
// rs whose display name starts with
|
||||
// Some example queries are:
|
||||
//
|
||||
// |Query | Description|
|
||||
// |----- | -----------|
|
||||
// |displayName=Test*|Folders whose display name starts with
|
||||
// "Test".|
|
||||
// |lifecycleState=ACTIVE|Folders whose lifecycleState is
|
||||
// ACTIVE.|
|
||||
// |parent=folders/123|Folders whose parent is
|
||||
// "folders/123".|
|
||||
// |parent=folders/123 AND lifecycleState=ACTIVE|Active folders
|
||||
// whose
|
||||
// |parent=folders/123 AND lifecycleState=ACTIVE|Active folders whose
|
||||
// parent is "folders/123".|
|
||||
Query string `json:"query,omitempty"`
|
||||
|
||||
@@ -823,8 +823,8 @@ type SearchFoldersRequest struct {
|
||||
}
|
||||
|
||||
func (s *SearchFoldersRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SearchFoldersRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SearchFoldersRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -862,8 +862,8 @@ type SearchFoldersResponse struct {
|
||||
}
|
||||
|
||||
func (s *SearchFoldersResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SearchFoldersResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SearchFoldersResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -904,8 +904,8 @@ type SetIamPolicyRequest struct {
|
||||
}
|
||||
|
||||
func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod SetIamPolicyRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod SetIamPolicyRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1023,8 +1023,8 @@ type Status struct {
|
||||
}
|
||||
|
||||
func (s *Status) MarshalJSON() ([]byte, error) {
|
||||
type noMethod Status
|
||||
raw := noMethod(*s)
|
||||
type NoMethod Status
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1058,8 +1058,8 @@ type TestIamPermissionsRequest struct {
|
||||
}
|
||||
|
||||
func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TestIamPermissionsRequest
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TestIamPermissionsRequest
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1093,8 +1093,8 @@ type TestIamPermissionsResponse struct {
|
||||
}
|
||||
|
||||
func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) {
|
||||
type noMethod TestIamPermissionsResponse
|
||||
raw := noMethod(*s)
|
||||
type NoMethod TestIamPermissionsResponse
|
||||
raw := NoMethod(*s)
|
||||
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
|
||||
}
|
||||
|
||||
@@ -1123,6 +1123,7 @@ type FoldersCreateCall struct {
|
||||
// In order to succeed, the addition of this new Folder must not
|
||||
// violate
|
||||
// the Folder naming, height or fanout constraints.
|
||||
//
|
||||
// + The Folder's display_name must be distinct from all other Folder's
|
||||
// that
|
||||
// share its parent.
|
||||
@@ -1241,12 +1242,12 @@ func (c *FoldersCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
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+ 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,\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.",
|
||||
// "flatPath": "v2beta1/folders",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudresourcemanager.folders.create",
|
||||
@@ -1284,13 +1285,13 @@ type FoldersDeleteCall struct {
|
||||
|
||||
// Delete: Requests deletion of a Folder. The Folder is moved into
|
||||
// the
|
||||
// [DELETE_REQUESTED] state immediately, and is deleted approximately 30
|
||||
// days
|
||||
// later. This method may only be called on an empty Folder in the
|
||||
// [ACTIVE]
|
||||
// state, where a Folder is empty if it doesn't contain any Folders
|
||||
// or
|
||||
// Projects in the [ACTIVE] state.
|
||||
// DELETE_REQUESTED state
|
||||
// immediately, and is deleted approximately 30 days later. This method
|
||||
// may
|
||||
// only be called on an empty Folder in the
|
||||
// ACTIVE state, where a Folder is empty if
|
||||
// it doesn't contain any Folders or Projects in the
|
||||
// ACTIVE state.
|
||||
// The caller must have `resourcemanager.folders.delete` permission on
|
||||
// the
|
||||
// identified folder.
|
||||
@@ -1376,12 +1377,12 @@ func (c *FoldersDeleteCall) Do(opts ...googleapi.CallOption) (*Folder, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Requests deletion of a Folder. The Folder is moved into the\n[DELETE_REQUESTED] state immediately, and is deleted approximately 30 days\nlater. This method may only be called on an empty Folder in the [ACTIVE]\nstate, where a Folder is empty if it doesn't contain any Folders or\nProjects in the [ACTIVE] state.\nThe caller must have `resourcemanager.folders.delete` permission on the\nidentified folder.",
|
||||
// "description": "Requests deletion of a Folder. The Folder is moved into the\nDELETE_REQUESTED state\nimmediately, and is deleted approximately 30 days later. This method may\nonly be called on an empty Folder in the\nACTIVE state, where a Folder is empty if\nit doesn't contain any Folders or Projects in the\nACTIVE state.\nThe caller must have `resourcemanager.folders.delete` permission on the\nidentified folder.",
|
||||
// "flatPath": "v2beta1/folders/{foldersId}",
|
||||
// "httpMethod": "DELETE",
|
||||
// "id": "cloudresourcemanager.folders.delete",
|
||||
@@ -1522,7 +1523,7 @@ func (c *FoldersGetCall) Do(opts ...googleapi.CallOption) (*Folder, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -1662,7 +1663,7 @@ func (c *FoldersGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, err
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -1755,8 +1756,9 @@ func (c *FoldersListCall) Parent(parent string) *FoldersListCall {
|
||||
}
|
||||
|
||||
// ShowDeleted sets the optional parameter "showDeleted": Controls
|
||||
// whether Folders in the [DELETE_REQUESTED} state should
|
||||
// be returned.
|
||||
// whether Folders in the
|
||||
// DELETE_REQUESTED
|
||||
// state should be returned. Defaults to false. This field is optional.
|
||||
func (c *FoldersListCall) ShowDeleted(showDeleted bool) *FoldersListCall {
|
||||
c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted))
|
||||
return c
|
||||
@@ -1848,7 +1850,7 @@ func (c *FoldersListCall) Do(opts ...googleapi.CallOption) (*ListFoldersResponse
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -1876,7 +1878,7 @@ func (c *FoldersListCall) Do(opts ...googleapi.CallOption) (*ListFoldersResponse
|
||||
// "type": "string"
|
||||
// },
|
||||
// "showDeleted": {
|
||||
// "description": "Controls whether Folders in the [DELETE_REQUESTED} state should\nbe returned.",
|
||||
// "description": "Controls whether Folders in the\nDELETE_REQUESTED\nstate should be returned. Defaults to false. This field is optional.",
|
||||
// "location": "query",
|
||||
// "type": "boolean"
|
||||
// }
|
||||
@@ -1946,8 +1948,8 @@ type FoldersMoveCall struct {
|
||||
// FolderOperation message as an aid to stateless clients.
|
||||
// Folder moves will be rejected if they violate either the naming,
|
||||
// height
|
||||
// or fanout constraints described in the [CreateFolder]
|
||||
// documentation.
|
||||
// or fanout constraints described in the
|
||||
// CreateFolder documentation.
|
||||
// The caller must have `resourcemanager.folders.move` permission on
|
||||
// the
|
||||
// folder's current and proposed new parent.
|
||||
@@ -2039,12 +2041,12 @@ func (c *FoldersMoveCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Moves a Folder under a new resource parent.\nReturns an Operation which can be used to track the progress of the\nfolder move workflow.\nUpon success the Operation.response field will be populated with the\nmoved Folder.\nUpon failure, a FolderOperationError categorizing the failure cause will\nbe returned - if the failure occurs synchronously then the\nFolderOperationError will be returned via the Status.details field\nand if it occurs asynchronously then the FolderOperation will be returned\nvia the the Operation.error field.\nIn addition, the Operation.metadata field will be populated with a\nFolderOperation message as an aid to stateless clients.\nFolder moves will be rejected if they violate either the naming, height\nor fanout constraints described in the [CreateFolder] documentation.\nThe caller must have `resourcemanager.folders.move` permission on the\nfolder's current and proposed new parent.",
|
||||
// "description": "Moves a Folder under a new resource parent.\nReturns an Operation which can be used to track the progress of the\nfolder move workflow.\nUpon success the Operation.response field will be populated with the\nmoved Folder.\nUpon failure, a FolderOperationError categorizing the failure cause will\nbe returned - if the failure occurs synchronously then the\nFolderOperationError will be returned via the Status.details field\nand if it occurs asynchronously then the FolderOperation will be returned\nvia the the Operation.error field.\nIn addition, the Operation.metadata field will be populated with a\nFolderOperation message as an aid to stateless clients.\nFolder moves will be rejected if they violate either the naming, height\nor fanout constraints described in the\nCreateFolder documentation.\nThe caller must have `resourcemanager.folders.move` permission on the\nfolder's current and proposed new parent.",
|
||||
// "flatPath": "v2beta1/folders/{foldersId}:move",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudresourcemanager.folders.move",
|
||||
@@ -2088,10 +2090,11 @@ type FoldersPatchCall struct {
|
||||
// Patch: Updates a Folder, changing its display_name.
|
||||
// Changes to the folder display_name will be rejected if they violate
|
||||
// either
|
||||
// the display_name formatting rules or naming constraints described
|
||||
// in
|
||||
// the [CreateFolder] documentation.
|
||||
// + The Folder's display name must start and end with a letter or
|
||||
// the display_name formatting rules or naming constraints described in
|
||||
// the
|
||||
// CreateFolder documentation.
|
||||
//
|
||||
// The Folder's display name must start and end with a letter or
|
||||
// digit,
|
||||
// may contain letters, digits, spaces, hyphens and underscores and can
|
||||
// be
|
||||
@@ -2202,12 +2205,12 @@ func (c *FoldersPatchCall) Do(opts ...googleapi.CallOption) (*Folder, error) {
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Updates a Folder, changing its display_name.\nChanges to the folder display_name will be rejected if they violate either\nthe display_name formatting rules or naming constraints described in\nthe [CreateFolder] documentation.\n+ The Folder's display name must start and end with a letter or digit,\nmay contain letters, digits, spaces, hyphens and underscores and can be\nno longer than 30 characters. This is captured by the regular expression:\n[\\p{L}\\p{N}]({\\p{L}\\p{N}_- ]{0,28}[\\p{L}\\p{N}])?.\nThe caller must have `resourcemanager.folders.update` permission on the\nidentified folder.\n\nIf the update fails due to the unique name constraint then a\nPreconditionFailure explaining this violation will be returned\nin the Status.details field.",
|
||||
// "description": "Updates a Folder, changing its display_name.\nChanges to the folder display_name will be rejected if they violate either\nthe display_name formatting rules or naming constraints described in the\nCreateFolder documentation.\n\nThe Folder's display name must start and end with a letter or digit,\nmay contain letters, digits, spaces, hyphens and underscores and can be\nno longer than 30 characters. This is captured by the regular expression:\n[\\p{L}\\p{N}]({\\p{L}\\p{N}_- ]{0,28}[\\p{L}\\p{N}])?.\nThe caller must have `resourcemanager.folders.update` permission on the\nidentified folder.\n\nIf the update fails due to the unique name constraint then a\nPreconditionFailure explaining this violation will be returned\nin the Status.details field.",
|
||||
// "flatPath": "v2beta1/folders/{foldersId}",
|
||||
// "httpMethod": "PATCH",
|
||||
// "id": "cloudresourcemanager.folders.patch",
|
||||
@@ -2345,7 +2348,7 @@ func (c *FoldersSearchCall) Do(opts ...googleapi.CallOption) (*SearchFoldersResp
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2499,7 +2502,7 @@ func (c *FoldersSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, err
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2639,7 +2642,7 @@ func (c *FoldersTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestI
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
@@ -2687,14 +2690,15 @@ type FoldersUndeleteCall struct {
|
||||
|
||||
// Undelete: Cancels the deletion request for a Folder. This method may
|
||||
// only be
|
||||
// called on a Folder in the [DELETE_REQUESTED] state.
|
||||
// In order to succeed, the Folder's parent must be in the [ACTIVE]
|
||||
// state.
|
||||
// called on a Folder in the
|
||||
// DELETE_REQUESTED state.
|
||||
// In order to succeed, the Folder's parent must be in the
|
||||
// ACTIVE state.
|
||||
// In addition, reintroducing the folder into the tree must not
|
||||
// violate
|
||||
// folder naming, height and fanout constraints described in
|
||||
// the
|
||||
// [CreateFolder] documentation.
|
||||
// CreateFolder documentation.
|
||||
// The caller must have `resourcemanager.folders.undelete` permission on
|
||||
// the
|
||||
// identified folder.
|
||||
@@ -2786,12 +2790,12 @@ func (c *FoldersUndeleteCall) Do(opts ...googleapi.CallOption) (*Folder, error)
|
||||
},
|
||||
}
|
||||
target := &ret
|
||||
if err := json.NewDecoder(res.Body).Decode(target); err != nil {
|
||||
if err := gensupport.DecodeResponse(target, res); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Cancels the deletion request for a Folder. This method may only be\ncalled on a Folder in the [DELETE_REQUESTED] state.\nIn order to succeed, the Folder's parent must be in the [ACTIVE] state.\nIn addition, reintroducing the folder into the tree must not violate\nfolder naming, height and fanout constraints described in the\n[CreateFolder] documentation.\nThe caller must have `resourcemanager.folders.undelete` permission on the\nidentified folder.",
|
||||
// "description": "Cancels the deletion request for a Folder. This method may only be\ncalled on a Folder in the\nDELETE_REQUESTED state.\nIn order to succeed, the Folder's parent must be in the\nACTIVE state.\nIn addition, reintroducing the folder into the tree must not violate\nfolder naming, height and fanout constraints described in the\nCreateFolder documentation.\nThe caller must have `resourcemanager.folders.undelete` permission on the\nidentified folder.",
|
||||
// "flatPath": "v2beta1/folders/{foldersId}:undelete",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudresourcemanager.folders.undelete",
|
||||
|
||||
Reference in New Issue
Block a user