Documentation ¶
Overview ¶
Copyright 2022 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Package operations contains all of the Operations used by the DCL.
Copyright 2022 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2021 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Google LLC. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type CRMOperation
- type CRMOperationError
- type CRMOperationErrorError
- type ComputeGlobalOrganizationOperation
- type ComputeOperation
- type ComputeOperationError
- type ComputeOperationErrorError
- type DNSOperation
- type DatastoreOperation
- type DatastoreOperationError
- type DatastoreOperationMetadata
- type KNativeOperation
- type KNativeOperationCondition
- type KNativeOperationMetadata
- type KNativeOperationStatus
- type MonitoringOperation
- type OSPolicyAssignmentDeleteOperation
- type SQLCreateCertOperation
- type SQLOperation
- type StandardGCPOperation
- type StandardGCPOperationError
- type StandardGCPOperationErrorError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRMOperation ¶
type CRMOperation struct { Name string `json:"name"` Error *CRMOperationError `json:"error"` Done bool `json:"done"` Response map[string]interface{} `json:"response"` Metadata map[string]interface{} `json:"metadata"` // contains filtered or unexported fields }
CRMOperation can be parsed from the returned API operation and waited on. This is the typical GCP operation.
func (*CRMOperation) FirstResponse ¶
func (op *CRMOperation) FirstResponse() (map[string]interface{}, bool)
FirstResponse returns the first response that this operation receives with the resource. This response may contain special information.
type CRMOperationError ¶
type CRMOperationError struct { Code int `json:"code"` Message string `json:"message"` Errors []*CRMOperationErrorError `json:"errors"` }
CRMOperationError is the GCP operation's Error body.
func (*CRMOperationError) String ¶
func (e *CRMOperationError) String() string
String formats the CRMOperationError as an error string.
type CRMOperationErrorError ¶
CRMOperationErrorError is a singular error in a GCP operation.
type ComputeGlobalOrganizationOperation ¶
type ComputeGlobalOrganizationOperation struct { BaseOperation ComputeOperation Parent string }
ComputeGlobalOrganizationOperation can be parsed from the returned API operation and waited on. Based on https://cloud.google.com/compute/docs/reference/rest/v1/globalOrganizationOperations
type ComputeOperation ¶
type ComputeOperation struct { ID string `json:"id"` Error *ComputeOperationError `json:"error"` SelfLink string `json:"selfLink"` Status string `json:"status"` TargetLink string `json:"targetLink"` TargetID string `json:"targetId"` // contains filtered or unexported fields }
ComputeOperation can be parsed from the returned API operation and waited on. Based on https://cloud.google.com/compute/docs/reference/rest/v1/regionOperations
func (*ComputeOperation) FirstResponse ¶
func (op *ComputeOperation) FirstResponse() (map[string]interface{}, bool)
FirstResponse returns the first response that this operation receives with the resource. This response may contain special information.
type ComputeOperationError ¶
type ComputeOperationError struct { Code int `json:"code"` Message string `json:"message"` Errors []*ComputeOperationErrorError `json:"errors"` }
ComputeOperationError is the GCE operation's Error body.
func (*ComputeOperationError) String ¶
func (e *ComputeOperationError) String() string
String formats the OperationError as an error string.
type ComputeOperationErrorError ¶
type ComputeOperationErrorError struct { Code string `json:"code"` Message string `json:"message"` }
ComputeOperationErrorError is a singular error in a GCE operation.
type DNSOperation ¶
type DNSOperation struct { Status string `json:"status"` ID string `json:"id"` Project string ManagedZone string // contains filtered or unexported fields }
DNSOperation can be parsed from the returned API operation and waited on. This is used for Changes only. Project and ManagedZone must be set ahead of time.
func (*DNSOperation) FirstResponse ¶
func (op *DNSOperation) FirstResponse() (map[string]interface{}, bool)
FirstResponse returns the first response that this operation receives with the resource. This response may contain special information.
type DatastoreOperation ¶
type DatastoreOperation struct { Name string `json:"name"` Done bool `json:"done"` Metadata *DatastoreOperationMetadata `json:"metadata"` Error *DatastoreOperationError `json:"error"` // contains filtered or unexported fields }
DatastoreOperation can be parsed from the returned API operation and waited on.
func (*DatastoreOperation) FirstResponse ¶
func (op *DatastoreOperation) FirstResponse() (map[string]interface{}, bool)
FirstResponse returns the first response that this operation receives with the resource. This response may contain special information.
type DatastoreOperationError ¶
DatastoreOperationError is an error in a datastore operation.
type DatastoreOperationMetadata ¶
type DatastoreOperationMetadata struct {
IndexID string `json:"indexId"`
}
DatastoreOperationMetadata is an error in a datastore operation.
type KNativeOperation ¶
type KNativeOperation struct { Status KNativeOperationStatus `json:"status"` Metadata KNativeOperationMetadata `json:"metadata"` // contains filtered or unexported fields }
KNativeOperation can be parsed from the returned Service.
func (*KNativeOperation) FirstResponse ¶
func (op *KNativeOperation) FirstResponse() (map[string]interface{}, bool)
FirstResponse returns the first response that this operation receives with the resource. This response may contain special information.
type KNativeOperationCondition ¶
KNativeOperationCondition contains the
type KNativeOperationMetadata ¶
type KNativeOperationMetadata struct { SelfLink string `json:"selfLink"` Labels map[string]string `json:"labels"` }
KNativeOperationMetadata contains the Labels block.
type KNativeOperationStatus ¶
type KNativeOperationStatus struct {
Conditions []KNativeOperationCondition `json:"conditions"`
}
KNativeOperationStatus contains the Conditions block.
type MonitoringOperation ¶
type MonitoringOperation struct {
Name string `json:"name"`
}
MonitoringOperation can be parsed from the returned API operation and waited on.
func (*MonitoringOperation) FetchName ¶
func (op *MonitoringOperation) FetchName() (*string, error)
FetchName will fetch the operation and return the name of the resource created. Monitoring creates resources with machine generated names. It must be called after the resource has been created.
type OSPolicyAssignmentDeleteOperation ¶
type OSPolicyAssignmentDeleteOperation struct { Name string `json:"name"` // contains filtered or unexported fields }
OSPolicyAssignmentDeleteOperation can be parsed from the returned API operation and waited on.
type SQLCreateCertOperation ¶
type SQLCreateCertOperation struct { Operation SQLOperation `json:"operation"` ClientCert struct { CertInfo map[string]interface{} `json:"certInfo"` } `json:"clientCert"` // contains filtered or unexported fields }
SQLCreateCertOperation is the operation used for creating SSL certs. They have a different format from other resources and other methods.
func (*SQLCreateCertOperation) FirstResponse ¶
func (op *SQLCreateCertOperation) FirstResponse() (map[string]interface{}, bool)
FirstResponse returns the first response that this operation receives with the resource. This response may contain special information.
type SQLOperation ¶
type SQLOperation struct { ID string `json:"id"` SelfLink string `json:"selfLink"` Status string `json:"status"` TargetLink string `json:"targetLink"` // contains filtered or unexported fields }
SQLOperation can be parsed from the returned API operation and waited on.
func (*SQLOperation) FirstResponse ¶
func (op *SQLOperation) FirstResponse() (map[string]interface{}, bool)
FirstResponse returns the first response that this operation receives with the resource. This response may contain special information.
type StandardGCPOperation ¶
type StandardGCPOperation struct { Name string `json:"name"` Error *StandardGCPOperationError `json:"error"` Done bool `json:"done"` Response map[string]interface{} `json:"response"` // contains filtered or unexported fields }
StandardGCPOperation can be parsed from the returned API operation and waited on. This is the typical GCP operation.
func (*StandardGCPOperation) FirstResponse ¶
func (op *StandardGCPOperation) FirstResponse() (map[string]interface{}, bool)
FirstResponse returns the first response that this operation receives with the resource. This response may contain special information.
type StandardGCPOperationError ¶
type StandardGCPOperationError struct { Errors []*StandardGCPOperationErrorError `json:"errors"` StandardGCPOperationErrorError }
StandardGCPOperationError is the GCP operation's Error body.
func (*StandardGCPOperationError) String ¶
func (e *StandardGCPOperationError) String() string
String formats the StandardGCPOperationError as an error string.
type StandardGCPOperationErrorError ¶
type StandardGCPOperationErrorError struct { Code json.Number `json:"code"` Message string `json:"message"` }
StandardGCPOperationErrorError is a singular error in a GCP operation.