How to use New method of cloud Package

Best K6 code snippet using cloud.New

known_go_imports.go

Source:known_go_imports.go Github

copy

Full Screen

2// From external/bazel_gazelle/language/proto/proto.csv3package proto4import "github.com/bazelbuild/bazel-gazelle/label"5var knownGoProtoImports = map[string]label.Label{6 "github.com/golang/protobuf/ptypes/any": label.New("io_bazel_rules_go", "proto/wkt", "any_go_proto"),7 "google.golang.org/genproto/protobuf/api": label.New("io_bazel_rules_go", "proto/wkt", "api_go_proto"),8 "github.com/golang/protobuf/protoc-gen-go/plugin": label.New("io_bazel_rules_go", "proto/wkt", "compiler_plugin_go_proto"),9 "github.com/golang/protobuf/protoc-gen-go/descriptor": label.New("io_bazel_rules_go", "proto/wkt", "descriptor_go_proto"),10 "github.com/golang/protobuf/ptypes/duration": label.New("io_bazel_rules_go", "proto/wkt", "duration_go_proto"),11 "github.com/golang/protobuf/ptypes/empty": label.New("io_bazel_rules_go", "proto/wkt", "empty_go_proto"),12 "google.golang.org/genproto/protobuf/field_mask": label.New("io_bazel_rules_go", "proto/wkt", "field_mask_go_proto"),13 "google.golang.org/genproto/protobuf/source_context": label.New("io_bazel_rules_go", "proto/wkt", "source_context_go_proto"),14 "github.com/golang/protobuf/ptypes/struct": label.New("io_bazel_rules_go", "proto/wkt", "struct_go_proto"),15 "github.com/golang/protobuf/ptypes/timestamp": label.New("io_bazel_rules_go", "proto/wkt", "timestamp_go_proto"),16 "google.golang.org/genproto/protobuf/ptype": label.New("io_bazel_rules_go", "proto/wkt", "type_go_proto"),17 "github.com/golang/protobuf/ptypes/wrappers": label.New("io_bazel_rules_go", "proto/wkt", "wrappers_go_proto"),18 "google.golang.org/genproto/googleapis/gapic/metadata": label.New("go_googleapis", "gapic/metadata", "metadata_go_proto"),19 "google.golang.org/genproto/googleapis/type/date_range": label.New("go_googleapis", "google/actions/type", "date_range_go_proto"),20 "google.golang.org/genproto/googleapis/type/date_time_range": label.New("go_googleapis", "google/actions/type", "date_time_range_go_proto"),21 "google.golang.org/genproto/googleapis/ads/admob/v1": label.New("go_googleapis", "google/ads/admob/v1", "admob_go_proto"),22 "google.golang.org/genproto/googleapis/ads/googleads/v4/common": label.New("go_googleapis", "google/ads/googleads/v4/common", "common_go_proto"),23 "google.golang.org/genproto/googleapis/ads/googleads/v4/enums": label.New("go_googleapis", "google/ads/googleads/v4/enums", "enums_go_proto"),24 "google.golang.org/genproto/googleapis/ads/googleads/v4/errors": label.New("go_googleapis", "google/ads/googleads/v4/errors", "errors_go_proto"),25 "google.golang.org/genproto/googleapis/ads/googleads/v4/resources": label.New("go_googleapis", "google/ads/googleads/v4/resources", "resources_go_proto"),26 "google.golang.org/genproto/googleapis/ads/googleads/v4/services": label.New("go_googleapis", "google/ads/googleads/v4/services", "services_go_proto"),27 "google.golang.org/genproto/googleapis/ads/googleads/v5/common": label.New("go_googleapis", "google/ads/googleads/v5/common", "common_go_proto"),28 "google.golang.org/genproto/googleapis/ads/googleads/v5/enums": label.New("go_googleapis", "google/ads/googleads/v5/enums", "enums_go_proto"),29 "google.golang.org/genproto/googleapis/ads/googleads/v5/errors": label.New("go_googleapis", "google/ads/googleads/v5/errors", "errors_go_proto"),30 "google.golang.org/genproto/googleapis/ads/googleads/v5/resources": label.New("go_googleapis", "google/ads/googleads/v5/resources", "resources_go_proto"),31 "google.golang.org/genproto/googleapis/ads/googleads/v5/services": label.New("go_googleapis", "google/ads/googleads/v5/services", "services_go_proto"),32 "google.golang.org/genproto/googleapis/ads/googleads/v6/common": label.New("go_googleapis", "google/ads/googleads/v6/common", "common_go_proto"),33 "google.golang.org/genproto/googleapis/ads/googleads/v6/enums": label.New("go_googleapis", "google/ads/googleads/v6/enums", "enums_go_proto"),34 "google.golang.org/genproto/googleapis/ads/googleads/v6/errors": label.New("go_googleapis", "google/ads/googleads/v6/errors", "errors_go_proto"),35 "google.golang.org/genproto/googleapis/ads/googleads/v6/resources": label.New("go_googleapis", "google/ads/googleads/v6/resources", "resources_go_proto"),36 "google.golang.org/genproto/googleapis/ads/googleads/v6/services": label.New("go_googleapis", "google/ads/googleads/v6/services", "services_go_proto"),37 "google.golang.org/genproto/googleapis/analytics/admin/v1alpha": label.New("go_googleapis", "google/analytics/admin/v1alpha", "admin_go_proto"),38 "google.golang.org/genproto/googleapis/analytics/data/v1alpha": label.New("go_googleapis", "google/analytics/data/v1alpha", "data_go_proto"),39 "google.golang.org/genproto/googleapis/analytics/data/v1beta": label.New("go_googleapis", "google/analytics/data/v1beta", "data_go_proto"),40 "google.golang.org/genproto/googleapis/api/annotations": label.New("go_googleapis", "google/api", "annotations_go_proto"),41 "google.golang.org/genproto/googleapis/api/serviceconfig": label.New("go_googleapis", "google/api", "serviceconfig_go_proto"),42 "google.golang.org/genproto/googleapis/api/configchange": label.New("go_googleapis", "google/api", "configchange_go_proto"),43 "google.golang.org/genproto/googleapis/api/distribution": label.New("go_googleapis", "google/api", "distribution_go_proto"),44 "google.golang.org/genproto/googleapis/api/error_reason": label.New("go_googleapis", "google/api", "error_reason_go_proto"),45 "google.golang.org/genproto/googleapis/api/expr/v1alpha1": label.New("go_googleapis", "google/api/expr/v1alpha1", "expr_go_proto"),46 "google.golang.org/genproto/googleapis/api/expr/conformance/v1alpha1": label.New("go_googleapis", "google/api/expr/v1alpha1", "confpb_go_proto"),47 "google.golang.org/genproto/googleapis/api/expr/v1beta1": label.New("go_googleapis", "google/api/expr/v1beta1", "expr_go_proto"),48 "google.golang.org/genproto/googleapis/api/httpbody": label.New("go_googleapis", "google/api", "httpbody_go_proto"),49 "google.golang.org/genproto/googleapis/api/label": label.New("go_googleapis", "google/api", "label_go_proto"),50 "google.golang.org/genproto/googleapis/api": label.New("go_googleapis", "google/api", "api_go_proto"),51 "google.golang.org/genproto/googleapis/api/metric": label.New("go_googleapis", "google/api", "metric_go_proto"),52 "google.golang.org/genproto/googleapis/api/monitoredres": label.New("go_googleapis", "google/api", "monitoredres_go_proto"),53 "google.golang.org/genproto/googleapis/api/servicecontrol/v1": label.New("go_googleapis", "google/api/servicecontrol/v1", "servicecontrol_go_proto"),54 "google.golang.org/genproto/googleapis/api/servicemanagement/v1": label.New("go_googleapis", "google/api/servicemanagement/v1", "servicemanagement_go_proto"),55 "google.golang.org/genproto/googleapis/appengine/legacy": label.New("go_googleapis", "google/appengine/legacy", "legacy_go_proto"),56 "google.golang.org/genproto/googleapis/appengine/logging/v1": label.New("go_googleapis", "google/appengine/logging/v1", "logging_go_proto"),57 "google.golang.org/genproto/googleapis/appengine/v1": label.New("go_googleapis", "google/appengine/v1", "appengine_go_proto"),58 "google.golang.org/genproto/googleapis/appengine/v1beta": label.New("go_googleapis", "google/appengine/v1beta", "appengine_go_proto"),59 "google.golang.org/genproto/googleapis/apps/drive/activity/v2": label.New("go_googleapis", "google/apps/drive/activity/v2", "activity_go_proto"),60 "google.golang.org/genproto/googleapis/ccc/hosted/marketplace/v2": label.New("go_googleapis", "google/apps/market/v2", "marketplace_go_proto"),61 "google.golang.org/genproto/googleapis/apps/script/type": label.New("go_googleapis", "google/apps/script/type", "type_go_proto"),62 "google.golang.org/genproto/googleapis/apps/script/type/calendar": label.New("go_googleapis", "google/apps/script/type/calendar", "calendar_go_proto"),63 "google.golang.org/genproto/googleapis/apps/script/type/docs": label.New("go_googleapis", "google/apps/script/type/docs", "docs_go_proto"),64 "google.golang.org/genproto/googleapis/apps/script/type/drive": label.New("go_googleapis", "google/apps/script/type/drive", "drive_go_proto"),65 "google.golang.org/genproto/googleapis/apps/script/type/gmail": label.New("go_googleapis", "google/apps/script/type/gmail", "gmail_go_proto"),66 "google.golang.org/genproto/googleapis/apps/script/type/sheets": label.New("go_googleapis", "google/apps/script/type/sheets", "sheets_go_proto"),67 "google.golang.org/genproto/googleapis/apps/script/type/slides": label.New("go_googleapis", "google/apps/script/type/slides", "slides_go_proto"),68 "google.golang.org/genproto/googleapis/area120/tables/v1alpha1": label.New("go_googleapis", "google/area120/tables/v1alpha1", "tables_go_proto"),69 "google.golang.org/genproto/googleapis/assistant/embedded/v1alpha1": label.New("go_googleapis", "google/assistant/embedded/v1alpha1", "embedded_go_proto"),70 "google.golang.org/genproto/googleapis/assistant/embedded/v1alpha2": label.New("go_googleapis", "google/assistant/embedded/v1alpha2", "embedded_go_proto"),71 "google.golang.org/genproto/googleapis/bigtable/admin/cluster/v1": label.New("go_googleapis", "google/bigtable/admin/cluster/v1", "cluster_go_proto"),72 "google.golang.org/genproto/googleapis/bigtable/admin/table/v1": label.New("go_googleapis", "google/bigtable/admin/table/v1", "table_go_proto"),73 "google.golang.org/genproto/googleapis/bigtable/admin/v2": label.New("go_googleapis", "google/bigtable/admin/v2", "admin_go_proto"),74 "google.golang.org/genproto/googleapis/bigtable/v1": label.New("go_googleapis", "google/bigtable/v1", "bigtable_go_proto"),75 "google.golang.org/genproto/googleapis/bigtable/v2": label.New("go_googleapis", "google/bigtable/v2", "bigtable_go_proto"),76 "google.golang.org/genproto/googleapis/bytestream": label.New("go_googleapis", "google/bytestream", "bytestream_go_proto"),77 "google.golang.org/genproto/googleapis/chromeos/moblab/v1beta1": label.New("go_googleapis", "google/chromeos/moblab/v1beta1", "moblab_go_proto"),78 "google.golang.org/genproto/googleapis/cloud/accessapproval/v1": label.New("go_googleapis", "google/cloud/accessapproval/v1", "accessapproval_go_proto"),79 "google.golang.org/genproto/googleapis/cloud/aiplatform/logging": label.New("go_googleapis", "google/cloud/aiplatform/logging", "logging_go_proto"),80 "google.golang.org/genproto/googleapis/cloud/aiplatform/v1": label.New("go_googleapis", "google/cloud/aiplatform/v1", "aiplatform_go_proto"),81 "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/instance": label.New("go_googleapis", "google/cloud/aiplatform/v1/schema/predict/instance", "instance_go_proto"),82 "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/params": label.New("go_googleapis", "google/cloud/aiplatform/v1/schema/predict/params", "params_go_proto"),83 "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/predict/prediction": label.New("go_googleapis", "google/cloud/aiplatform/v1/schema/predict/prediction", "prediction_go_proto"),84 "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition": label.New("go_googleapis", "google/cloud/aiplatform/v1/schema/trainingjob/definition", "definition_go_proto"),85 "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1": label.New("go_googleapis", "google/cloud/aiplatform/v1beta1", "aiplatform_go_proto"),86 "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema": label.New("go_googleapis", "google/cloud/aiplatform/v1beta1/schema", "schema_go_proto"),87 "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/instance": label.New("go_googleapis", "google/cloud/aiplatform/v1beta1/schema/predict/instance", "instance_go_proto"),88 "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/params": label.New("go_googleapis", "google/cloud/aiplatform/v1beta1/schema/predict/params", "params_go_proto"),89 "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/predict/prediction": label.New("go_googleapis", "google/cloud/aiplatform/v1beta1/schema/predict/prediction", "prediction_go_proto"),90 "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1/schema/trainingjob/definition": label.New("go_googleapis", "google/cloud/aiplatform/v1beta1/schema/trainingjob/definition", "definition_go_proto"),91 "google.golang.org/genproto/googleapis/cloud/apigateway/v1": label.New("go_googleapis", "google/cloud/apigateway/v1", "apigateway_go_proto"),92 "google.golang.org/genproto/googleapis/cloud/asset/v1": label.New("go_googleapis", "google/cloud/asset/v1", "asset_go_proto"),93 "google.golang.org/genproto/googleapis/cloud/asset/v1p1beta1": label.New("go_googleapis", "google/cloud/asset/v1p1beta1", "asset_go_proto"),94 "google.golang.org/genproto/googleapis/cloud/asset/v1p2beta1": label.New("go_googleapis", "google/cloud/asset/v1p2beta1", "asset_go_proto"),95 "google.golang.org/genproto/googleapis/cloud/asset/v1p4beta1": label.New("go_googleapis", "google/cloud/asset/v1p4beta1", "asset_go_proto"),96 "google.golang.org/genproto/googleapis/cloud/asset/v1p5beta1": label.New("go_googleapis", "google/cloud/asset/v1p5beta1", "asset_go_proto"),97 "google.golang.org/genproto/googleapis/cloud/asset/v1p7beta1": label.New("go_googleapis", "google/cloud/asset/v1p7beta1", "asset_go_proto"),98 "google.golang.org/genproto/googleapis/cloud/assuredworkloads/v1beta1": label.New("go_googleapis", "google/cloud/assuredworkloads/v1beta1", "assuredworkloads_go_proto"),99 "google.golang.org/genproto/googleapis/cloud/audit": label.New("go_googleapis", "google/cloud/audit", "audit_go_proto"),100 "google.golang.org/genproto/googleapis/cloud/automl/v1": label.New("go_googleapis", "google/cloud/automl/v1", "automl_go_proto"),101 "google.golang.org/genproto/googleapis/cloud/automl/v1beta1": label.New("go_googleapis", "google/cloud/automl/v1beta1", "automl_go_proto"),102 "google.golang.org/genproto/googleapis/cloud/bigquery/connection/v1": label.New("go_googleapis", "google/cloud/bigquery/connection/v1", "connection_go_proto"),103 "google.golang.org/genproto/googleapis/cloud/bigquery/connection/v1beta1": label.New("go_googleapis", "google/cloud/bigquery/connection/v1beta1", "connection_go_proto"),104 "google.golang.org/genproto/googleapis/cloud/bigquery/datatransfer/v1": label.New("go_googleapis", "google/cloud/bigquery/datatransfer/v1", "datatransfer_go_proto"),105 "google.golang.org/genproto/googleapis/cloud/bigquery/logging/v1": label.New("go_googleapis", "google/cloud/bigquery/logging/v1", "logging_go_proto"),106 "google.golang.org/genproto/googleapis/cloud/bigquery/reservation/v1": label.New("go_googleapis", "google/cloud/bigquery/reservation/v1", "reservation_go_proto"),107 "google.golang.org/genproto/googleapis/cloud/bigquery/reservation/v1beta1": label.New("go_googleapis", "google/cloud/bigquery/reservation/v1beta1", "reservation_go_proto"),108 "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1": label.New("go_googleapis", "google/cloud/bigquery/storage/v1", "storage_go_proto"),109 "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1alpha2": label.New("go_googleapis", "google/cloud/bigquery/storage/v1alpha2", "storage_go_proto"),110 "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1": label.New("go_googleapis", "google/cloud/bigquery/storage/v1beta1", "storage_go_proto"),111 "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta2": label.New("go_googleapis", "google/cloud/bigquery/storage/v1beta2", "storage_go_proto"),112 "google.golang.org/genproto/googleapis/cloud/bigquery/v2": label.New("go_googleapis", "google/cloud/bigquery/v2", "bigquery_go_proto"),113 "google.golang.org/genproto/googleapis/cloud/billing/budgets/v1": label.New("go_googleapis", "google/cloud/billing/budgets/v1", "budgets_go_proto"),114 "google.golang.org/genproto/googleapis/cloud/billing/budgets/v1alpha1": label.New("go_googleapis", "google/cloud/billing/budgets/v1alpha1", "budgets_go_proto"),115 "google.golang.org/genproto/googleapis/cloud/billing/budgets/v1beta1": label.New("go_googleapis", "google/cloud/billing/budgets/v1beta1", "budgets_go_proto"),116 "google.golang.org/genproto/googleapis/cloud/billing/v1": label.New("go_googleapis", "google/cloud/billing/v1", "billing_go_proto"),117 "google.golang.org/genproto/googleapis/cloud/binaryauthorization/v1beta1": label.New("go_googleapis", "google/cloud/binaryauthorization/v1beta1", "binaryauthorization_go_proto"),118 "google.golang.org/genproto/googleapis/cloud/channel/v1": label.New("go_googleapis", "google/cloud/channel/v1", "channel_go_proto"),119 "google.golang.org/genproto/googleapis/cloud/datacatalog/v1": label.New("go_googleapis", "google/cloud/datacatalog/v1", "datacatalog_go_proto"),120 "google.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1": label.New("go_googleapis", "google/cloud/datacatalog/v1beta1", "datacatalog_go_proto"),121 "google.golang.org/genproto/googleapis/cloud/datalabeling/v1beta1": label.New("go_googleapis", "google/cloud/datalabeling/v1beta1", "datalabeling_go_proto"),122 "google.golang.org/genproto/googleapis/cloud/dataproc/logging": label.New("go_googleapis", "google/cloud/dataproc/logging", "logging_go_proto"),123 "google.golang.org/genproto/googleapis/cloud/dataproc/v1": label.New("go_googleapis", "google/cloud/dataproc/v1", "dataproc_go_proto"),124 "google.golang.org/genproto/googleapis/cloud/dataproc/v1beta2": label.New("go_googleapis", "google/cloud/dataproc/v1beta2", "dataproc_go_proto"),125 "google.golang.org/genproto/googleapis/cloud/dataqna/v1alpha": label.New("go_googleapis", "google/cloud/dataqna/v1alpha", "dataqna_go_proto"),126 "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3": label.New("go_googleapis", "google/cloud/dialogflow/cx/v3", "cx_go_proto"),127 "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3beta1": label.New("go_googleapis", "google/cloud/dialogflow/cx/v3beta1", "cx_go_proto"),128 "google.golang.org/genproto/googleapis/cloud/dialogflow/v2": label.New("go_googleapis", "google/cloud/dialogflow/v2", "dialogflow_go_proto"),129 "google.golang.org/genproto/googleapis/cloud/dialogflow/v2beta1": label.New("go_googleapis", "google/cloud/dialogflow/v2beta1", "dialogflow_go_proto"),130 "google.golang.org/genproto/googleapis/cloud/documentai/v1": label.New("go_googleapis", "google/cloud/documentai/v1", "documentai_go_proto"),131 "google.golang.org/genproto/googleapis/cloud/documentai/v1beta1": label.New("go_googleapis", "google/cloud/documentai/v1beta1", "documentai_go_proto"),132 "google.golang.org/genproto/googleapis/cloud/documentai/v1beta2": label.New("go_googleapis", "google/cloud/documentai/v1beta2", "documentai_go_proto"),133 "google.golang.org/genproto/googleapis/cloud/documentai/v1beta3": label.New("go_googleapis", "google/cloud/documentai/v1beta3", "documentai_go_proto"),134 "google.golang.org/genproto/googleapis/cloud/domains/v1alpha2": label.New("go_googleapis", "google/cloud/domains/v1alpha2", "domains_go_proto"),135 "google.golang.org/genproto/googleapis/cloud/domains/v1beta1": label.New("go_googleapis", "google/cloud/domains/v1beta1", "domains_go_proto"),136 "google.golang.org/genproto/googleapis/cloud/functions/v1": label.New("go_googleapis", "google/cloud/functions/v1", "functions_go_proto"),137 "google.golang.org/genproto/googleapis/cloud/gaming/v1": label.New("go_googleapis", "google/cloud/gaming/v1", "gaming_go_proto"),138 "google.golang.org/genproto/googleapis/cloud/gaming/v1beta": label.New("go_googleapis", "google/cloud/gaming/v1beta", "gaming_go_proto"),139 "google.golang.org/genproto/googleapis/cloud/gkehub/v1alpha2": label.New("go_googleapis", "google/cloud/gkehub/v1alpha2", "gkehub_go_proto"),140 "google.golang.org/genproto/googleapis/cloud/gkehub/v1beta1": label.New("go_googleapis", "google/cloud/gkehub/v1beta1", "gkehub_go_proto"),141 "google.golang.org/genproto/googleapis/cloud/gsuiteaddons/v1": label.New("go_googleapis", "google/cloud/gsuiteaddons/v1", "gsuiteaddons_go_proto"),142 "google.golang.org/genproto/googleapis/cloud/iot/v1": label.New("go_googleapis", "google/cloud/iot/v1", "iot_go_proto"),143 "google.golang.org/genproto/googleapis/cloud/kms/v1": label.New("go_googleapis", "google/cloud/kms/v1", "kms_go_proto"),144 "google.golang.org/genproto/googleapis/cloud/language/v1": label.New("go_googleapis", "google/cloud/language/v1", "language_go_proto"),145 "google.golang.org/genproto/googleapis/cloud/language/v1beta1": label.New("go_googleapis", "google/cloud/language/v1beta1", "language_go_proto"),146 "google.golang.org/genproto/googleapis/cloud/language/v1beta2": label.New("go_googleapis", "google/cloud/language/v1beta2", "language_go_proto"),147 "google.golang.org/genproto/googleapis/cloud/location": label.New("go_googleapis", "google/cloud/location", "location_go_proto"),148 "google.golang.org/genproto/googleapis/cloud/managedidentities/v1": label.New("go_googleapis", "google/cloud/managedidentities/v1", "managedidentities_go_proto"),149 "google.golang.org/genproto/googleapis/cloud/managedidentities/v1beta1": label.New("go_googleapis", "google/cloud/managedidentities/v1beta1", "managedidentities_go_proto"),150 "google.golang.org/genproto/googleapis/cloud/mediatranslation/v1alpha1": label.New("go_googleapis", "google/cloud/mediatranslation/v1alpha1", "mediatranslation_go_proto"),151 "google.golang.org/genproto/googleapis/cloud/mediatranslation/v1beta1": label.New("go_googleapis", "google/cloud/mediatranslation/v1beta1", "mediatranslation_go_proto"),152 "google.golang.org/genproto/googleapis/cloud/memcache/v1": label.New("go_googleapis", "google/cloud/memcache/v1", "memcache_go_proto"),153 "google.golang.org/genproto/googleapis/cloud/memcache/v1beta2": label.New("go_googleapis", "google/cloud/memcache/v1beta2", "memcache_go_proto"),154 "google.golang.org/genproto/googleapis/cloud/metastore/logging/v1": label.New("go_googleapis", "google/cloud/metastore/logging/v1", "logging_go_proto"),155 "google.golang.org/genproto/googleapis/cloud/metastore/v1alpha": label.New("go_googleapis", "google/cloud/metastore/v1alpha", "metastore_go_proto"),156 "google.golang.org/genproto/googleapis/cloud/ml/v1": label.New("go_googleapis", "google/cloud/ml/v1", "ml_go_proto"),157 "google.golang.org/genproto/googleapis/cloud/networkconnectivity/v1alpha1": label.New("go_googleapis", "google/cloud/networkconnectivity/v1alpha1", "networkconnectivity_go_proto"),158 "google.golang.org/genproto/googleapis/cloud/notebooks/v1beta1": label.New("go_googleapis", "google/cloud/notebooks/v1beta1", "notebooks_go_proto"),159 "google.golang.org/genproto/googleapis/cloud/orgpolicy/v1": label.New("go_googleapis", "google/cloud/orgpolicy/v1", "orgpolicy_go_proto"),160 "google.golang.org/genproto/googleapis/cloud/orgpolicy/v2": label.New("go_googleapis", "google/cloud/orgpolicy/v2", "orgpolicy_go_proto"),161 "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1": label.New("go_googleapis", "google/cloud/osconfig/agentendpoint/v1", "agentendpoint_go_proto"),162 "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1beta": label.New("go_googleapis", "google/cloud/osconfig/agentendpoint/v1beta", "agentendpoint_go_proto"),163 "google.golang.org/genproto/googleapis/cloud/osconfig/v1": label.New("go_googleapis", "google/cloud/osconfig/v1", "osconfig_go_proto"),164 "google.golang.org/genproto/googleapis/cloud/osconfig/v1beta": label.New("go_googleapis", "google/cloud/osconfig/v1beta", "osconfig_go_proto"),165 "google.golang.org/genproto/googleapis/cloud/oslogin/common": label.New("go_googleapis", "google/cloud/oslogin/common", "common_go_proto"),166 "google.golang.org/genproto/googleapis/cloud/oslogin/v1": label.New("go_googleapis", "google/cloud/oslogin/v1", "oslogin_go_proto"),167 "google.golang.org/genproto/googleapis/cloud/oslogin/v1alpha": label.New("go_googleapis", "google/cloud/oslogin/v1alpha", "oslogin_go_proto"),168 "google.golang.org/genproto/googleapis/cloud/oslogin/v1beta": label.New("go_googleapis", "google/cloud/oslogin/v1beta", "oslogin_go_proto"),169 "google.golang.org/genproto/googleapis/cloud/phishingprotection/v1beta1": label.New("go_googleapis", "google/cloud/phishingprotection/v1beta1", "phishingprotection_go_proto"),170 "google.golang.org/genproto/googleapis/cloud/policytroubleshooter/v1": label.New("go_googleapis", "google/cloud/policytroubleshooter/v1", "policytroubleshooter_go_proto"),171 "google.golang.org/genproto/googleapis/cloud/pubsublite/v1": label.New("go_googleapis", "google/cloud/pubsublite/v1", "pubsublite_go_proto"),172 "google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1": label.New("go_googleapis", "google/cloud/recaptchaenterprise/v1", "recaptchaenterprise_go_proto"),173 "google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1beta1": label.New("go_googleapis", "google/cloud/recaptchaenterprise/v1beta1", "recaptchaenterprise_go_proto"),174 "google.golang.org/genproto/googleapis/cloud/recommendationengine/v1beta1": label.New("go_googleapis", "google/cloud/recommendationengine/v1beta1", "recommendationengine_go_proto"),175 "google.golang.org/genproto/googleapis/cloud/recommender/logging/v1": label.New("go_googleapis", "google/cloud/recommender/logging/v1", "logging_go_proto"),176 "google.golang.org/genproto/googleapis/cloud/recommender/logging/v1beta1": label.New("go_googleapis", "google/cloud/recommender/logging/v1beta1", "logging_go_proto"),177 "google.golang.org/genproto/googleapis/cloud/recommender/v1": label.New("go_googleapis", "google/cloud/recommender/v1", "recommender_go_proto"),178 "google.golang.org/genproto/googleapis/cloud/recommender/v1beta1": label.New("go_googleapis", "google/cloud/recommender/v1beta1", "recommender_go_proto"),179 "google.golang.org/genproto/googleapis/cloud/redis/v1": label.New("go_googleapis", "google/cloud/redis/v1", "redis_go_proto"),180 "google.golang.org/genproto/googleapis/cloud/redis/v1beta1": label.New("go_googleapis", "google/cloud/redis/v1beta1", "redis_go_proto"),181 "google.golang.org/genproto/googleapis/cloud/resourcemanager/v2": label.New("go_googleapis", "google/cloud/resourcemanager/v2", "resourcemanager_go_proto"),182 "google.golang.org/genproto/googleapis/cloud/resourcesettings/v1": label.New("go_googleapis", "google/cloud/resourcesettings/v1", "resourcesettings_go_proto"),183 "google.golang.org/genproto/googleapis/cloud/retail/v2": label.New("go_googleapis", "google/cloud/retail/v2", "retail_go_proto"),184 "google.golang.org/genproto/googleapis/cloud/retail/v2alpha": label.New("go_googleapis", "google/cloud/retail/v2alpha", "retail_go_proto"),185 "google.golang.org/genproto/googleapis/cloud/retail/v2beta": label.New("go_googleapis", "google/cloud/retail/v2beta", "retail_go_proto"),186 "google.golang.org/genproto/googleapis/cloud/runtimeconfig/v1beta1": label.New("go_googleapis", "google/cloud/runtimeconfig/v1beta1", "runtimeconfig_go_proto"),187 "google.golang.org/genproto/googleapis/cloud/saasaccelerator/management/logs/v1": label.New("go_googleapis", "google/cloud/saasaccelerator/management/logs/v1", "logs_go_proto"),188 "google.golang.org/genproto/googleapis/cloud/scheduler/v1": label.New("go_googleapis", "google/cloud/scheduler/v1", "scheduler_go_proto"),189 "google.golang.org/genproto/googleapis/cloud/scheduler/v1beta1": label.New("go_googleapis", "google/cloud/scheduler/v1beta1", "scheduler_go_proto"),190 "google.golang.org/genproto/googleapis/cloud/secretmanager/v1": label.New("go_googleapis", "google/cloud/secretmanager/v1", "secretmanager_go_proto"),191 "google.golang.org/genproto/googleapis/cloud/secretmanager/v1beta1": label.New("go_googleapis", "google/cloud/secrets/v1beta1", "secretmanager_go_proto"),192 "google.golang.org/genproto/googleapis/cloud/security/privateca/v1beta1": label.New("go_googleapis", "google/cloud/security/privateca/v1beta1", "privateca_go_proto"),193 "google.golang.org/genproto/googleapis/cloud/securitycenter/settings/v1beta1": label.New("go_googleapis", "google/cloud/securitycenter/settings/v1beta1", "settings_go_proto"),194 "google.golang.org/genproto/googleapis/cloud/securitycenter/v1": label.New("go_googleapis", "google/cloud/securitycenter/v1", "securitycenter_go_proto"),195 "google.golang.org/genproto/googleapis/cloud/securitycenter/v1beta1": label.New("go_googleapis", "google/cloud/securitycenter/v1beta1", "securitycenter_go_proto"),196 "google.golang.org/genproto/googleapis/cloud/securitycenter/v1p1beta1": label.New("go_googleapis", "google/cloud/securitycenter/v1p1beta1", "securitycenter_go_proto"),197 "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1": label.New("go_googleapis", "google/cloud/servicedirectory/v1", "servicedirectory_go_proto"),198 "google.golang.org/genproto/googleapis/cloud/servicedirectory/v1beta1": label.New("go_googleapis", "google/cloud/servicedirectory/v1beta1", "servicedirectory_go_proto"),199 "google.golang.org/genproto/googleapis/cloud/shell/v1": label.New("go_googleapis", "google/cloud/shell/v1", "shell_go_proto"),200 "google.golang.org/genproto/googleapis/cloud/speech/v1": label.New("go_googleapis", "google/cloud/speech/v1", "speech_go_proto"),201 "google.golang.org/genproto/googleapis/cloud/speech/v1p1beta1": label.New("go_googleapis", "google/cloud/speech/v1p1beta1", "speech_go_proto"),202 "google.golang.org/genproto/googleapis/cloud/support/common": label.New("go_googleapis", "google/cloud/support", "common_go_proto"),203 "google.golang.org/genproto/googleapis/cloud/support/v1alpha1": label.New("go_googleapis", "google/cloud/support/v1alpha1", "support_go_proto"),204 "google.golang.org/genproto/googleapis/cloud/talent/v4": label.New("go_googleapis", "google/cloud/talent/v4", "talent_go_proto"),205 "google.golang.org/genproto/googleapis/cloud/talent/v4beta1": label.New("go_googleapis", "google/cloud/talent/v4beta1", "talent_go_proto"),206 "google.golang.org/genproto/googleapis/cloud/tasks/v2": label.New("go_googleapis", "google/cloud/tasks/v2", "tasks_go_proto"),207 "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2": label.New("go_googleapis", "google/cloud/tasks/v2beta2", "tasks_go_proto"),208 "google.golang.org/genproto/googleapis/cloud/tasks/v2beta3": label.New("go_googleapis", "google/cloud/tasks/v2beta3", "tasks_go_proto"),209 "google.golang.org/genproto/googleapis/cloud/texttospeech/v1": label.New("go_googleapis", "google/cloud/texttospeech/v1", "texttospeech_go_proto"),210 "google.golang.org/genproto/googleapis/cloud/texttospeech/v1beta1": label.New("go_googleapis", "google/cloud/texttospeech/v1beta1", "texttospeech_go_proto"),211 "google.golang.org/genproto/googleapis/cloud/translate/v3": label.New("go_googleapis", "google/cloud/translate/v3", "translate_go_proto"),212 "google.golang.org/genproto/googleapis/cloud/translate/v3beta1": label.New("go_googleapis", "google/cloud/translate/v3beta1", "translate_go_proto"),213 "google.golang.org/genproto/googleapis/cloud/video/transcoder/v1beta1": label.New("go_googleapis", "google/cloud/video/transcoder/v1beta1", "transcoder_go_proto"),214 "google.golang.org/genproto/googleapis/cloud/videointelligence/v1": label.New("go_googleapis", "google/cloud/videointelligence/v1", "videointelligence_go_proto"),215 "google.golang.org/genproto/googleapis/cloud/videointelligence/v1beta2": label.New("go_googleapis", "google/cloud/videointelligence/v1beta2", "videointelligence_go_proto"),216 "google.golang.org/genproto/googleapis/cloud/videointelligence/v1p1beta1": label.New("go_googleapis", "google/cloud/videointelligence/v1p1beta1", "videointelligence_go_proto"),217 "google.golang.org/genproto/googleapis/cloud/videointelligence/v1p2beta1": label.New("go_googleapis", "google/cloud/videointelligence/v1p2beta1", "videointelligence_go_proto"),218 "google.golang.org/genproto/googleapis/cloud/videointelligence/v1p3beta1": label.New("go_googleapis", "google/cloud/videointelligence/v1p3beta1", "videointelligence_go_proto"),219 "google.golang.org/genproto/googleapis/cloud/vision/v1": label.New("go_googleapis", "google/cloud/vision/v1", "vision_go_proto"),220 "google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1": label.New("go_googleapis", "google/cloud/vision/v1p1beta1", "vision_go_proto"),221 "google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1": label.New("go_googleapis", "google/cloud/vision/v1p2beta1", "vision_go_proto"),222 "google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1": label.New("go_googleapis", "google/cloud/vision/v1p3beta1", "vision_go_proto"),223 "google.golang.org/genproto/googleapis/cloud/vision/v1p4beta1": label.New("go_googleapis", "google/cloud/vision/v1p4beta1", "vision_go_proto"),224 "google.golang.org/genproto/googleapis/cloud/webrisk/v1": label.New("go_googleapis", "google/cloud/webrisk/v1", "webrisk_go_proto"),225 "google.golang.org/genproto/googleapis/cloud/webrisk/v1beta1": label.New("go_googleapis", "google/cloud/webrisk/v1beta1", "webrisk_go_proto"),226 "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1": label.New("go_googleapis", "google/cloud/websecurityscanner/v1", "websecurityscanner_go_proto"),227 "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1alpha": label.New("go_googleapis", "google/cloud/websecurityscanner/v1alpha", "websecurityscanner_go_proto"),228 "google.golang.org/genproto/googleapis/cloud/websecurityscanner/v1beta": label.New("go_googleapis", "google/cloud/websecurityscanner/v1beta", "websecurityscanner_go_proto"),229 "google.golang.org/genproto/googleapis/cloud/workflows/executions/v1": label.New("go_googleapis", "google/cloud/workflows/executions/v1", "executions_go_proto"),230 "google.golang.org/genproto/googleapis/cloud/workflows/executions/v1beta": label.New("go_googleapis", "google/cloud/workflows/executions/v1beta", "executions_go_proto"),231 "google.golang.org/genproto/googleapis/cloud/workflows/v1": label.New("go_googleapis", "google/cloud/workflows/v1", "workflows_go_proto"),232 "google.golang.org/genproto/googleapis/cloud/workflows/v1beta": label.New("go_googleapis", "google/cloud/workflows/v1beta", "workflows_go_proto"),233 "google.golang.org/genproto/googleapis/container/v1": label.New("go_googleapis", "google/container/v1", "container_go_proto"),234 "google.golang.org/genproto/googleapis/container/v1alpha1": label.New("go_googleapis", "google/container/v1alpha1", "container_go_proto"),235 "google.golang.org/genproto/googleapis/container/v1beta1": label.New("go_googleapis", "google/container/v1beta1", "container_go_proto"),236 "google.golang.org/genproto/googleapis/datastore/admin/v1": label.New("go_googleapis", "google/datastore/admin/v1", "admin_go_proto"),237 "google.golang.org/genproto/googleapis/datastore/admin/v1beta1": label.New("go_googleapis", "google/datastore/admin/v1beta1", "admin_go_proto"),238 "google.golang.org/genproto/googleapis/datastore/v1": label.New("go_googleapis", "google/datastore/v1", "datastore_go_proto"),239 "google.golang.org/genproto/googleapis/datastore/v1beta3": label.New("go_googleapis", "google/datastore/v1beta3", "datastore_go_proto"),240 "google.golang.org/genproto/googleapis/devtools/artifactregistry/v1beta2": label.New("go_googleapis", "google/devtools/artifactregistry/v1beta2", "artifactregistry_go_proto"),241 "google.golang.org/genproto/googleapis/devtools/build/v1": label.New("go_googleapis", "google/devtools/build/v1", "build_go_proto"),242 "google.golang.org/genproto/googleapis/devtools/cloudbuild/v1": label.New("go_googleapis", "google/devtools/cloudbuild/v1", "cloudbuild_go_proto"),243 "google.golang.org/genproto/googleapis/devtools/clouddebugger/v2": label.New("go_googleapis", "google/devtools/clouddebugger/v2", "clouddebugger_go_proto"),244 "google.golang.org/genproto/googleapis/devtools/clouderrorreporting/v1beta1": label.New("go_googleapis", "google/devtools/clouderrorreporting/v1beta1", "clouderrorreporting_go_proto"),245 "google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2": label.New("go_googleapis", "google/devtools/cloudprofiler/v2", "cloudprofiler_go_proto"),246 "google.golang.org/genproto/googleapis/devtools/cloudtrace/v1": label.New("go_googleapis", "google/devtools/cloudtrace/v1", "cloudtrace_go_proto"),247 "google.golang.org/genproto/googleapis/devtools/cloudtrace/v2": label.New("go_googleapis", "google/devtools/cloudtrace/v2", "cloudtrace_go_proto"),248 "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1": label.New("go_googleapis", "google/devtools/containeranalysis/v1", "containeranalysis_go_proto"),249 "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/attestation": label.New("go_googleapis", "google/devtools/containeranalysis/v1beta1/attestation", "attestation_go_proto"),250 "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/build": label.New("go_googleapis", "google/devtools/containeranalysis/v1beta1/build", "build_go_proto"),251 "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/common": label.New("go_googleapis", "google/devtools/containeranalysis/v1beta1/common", "common_go_proto"),252 "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1": label.New("go_googleapis", "google/devtools/containeranalysis/v1beta1", "containeranalysis_go_proto"),253 "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/cvss": label.New("go_googleapis", "google/devtools/containeranalysis/v1beta1/cvss", "cvss_go_proto"),254 "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/deployment": label.New("go_googleapis", "google/devtools/containeranalysis/v1beta1/deployment", "deployment_go_proto"),255 "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/discovery": label.New("go_googleapis", "google/devtools/containeranalysis/v1beta1/discovery", "discovery_go_proto"),256 "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/grafeas": label.New("go_googleapis", "google/devtools/containeranalysis/v1beta1/grafeas", "grafeas_go_proto"),257 "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/image": label.New("go_googleapis", "google/devtools/containeranalysis/v1beta1/image", "image_go_proto"),258 "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/package": label.New("go_googleapis", "google/devtools/containeranalysis/v1beta1/package", "package_go_proto"),259 "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/provenance": label.New("go_googleapis", "google/devtools/containeranalysis/v1beta1/provenance", "provenance_go_proto"),260 "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/source": label.New("go_googleapis", "google/devtools/containeranalysis/v1beta1/source", "source_go_proto"),261 "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/vulnerability": label.New("go_googleapis", "google/devtools/containeranalysis/v1beta1/vulnerability", "vulnerability_go_proto"),262 "google.golang.org/genproto/googleapis/devtools/remoteworkers/v1test2": label.New("go_googleapis", "google/devtools/remoteworkers/v1test2", "remoteworkers_go_proto"),263 "google.golang.org/genproto/googleapis/devtools/resultstore/v2": label.New("go_googleapis", "google/devtools/resultstore/v2", "resultstore_go_proto"),264 "google.golang.org/genproto/googleapis/devtools/source/v1": label.New("go_googleapis", "google/devtools/source/v1", "source_go_proto"),265 "google.golang.org/genproto/googleapis/devtools/sourcerepo/v1": label.New("go_googleapis", "google/devtools/sourcerepo/v1", "sourcerepo_go_proto"),266 "google.golang.org/genproto/googleapis/example/library/v1": label.New("go_googleapis", "google/example/library/v1", "library_go_proto"),267 "google.golang.org/genproto/googleapis/firebase/fcm/connection/v1alpha1": label.New("go_googleapis", "google/firebase/fcm/connection/v1alpha1", "connection_go_proto"),268 "google.golang.org/genproto/googleapis/firestore/admin/v1": label.New("go_googleapis", "google/firestore/admin/v1", "admin_go_proto"),269 "google.golang.org/genproto/googleapis/firestore/admin/v1beta1": label.New("go_googleapis", "google/firestore/admin/v1beta1", "admin_go_proto"),270 "google.golang.org/genproto/googleapis/firestore/admin/v1beta2": label.New("go_googleapis", "google/firestore/admin/v1beta2", "admin_go_proto"),271 "google.golang.org/genproto/firestore/bundle": label.New("go_googleapis", "google/firestore/bundle", "firestore_go_proto"),272 "google.golang.org/genproto/googleapis/firestore/v1": label.New("go_googleapis", "google/firestore/v1", "firestore_go_proto"),273 "google.golang.org/genproto/googleapis/firestore/v1beta1": label.New("go_googleapis", "google/firestore/v1beta1", "firestore_go_proto"),274 "google.golang.org/genproto/googleapis/genomics/v1": label.New("go_googleapis", "google/genomics/v1", "genomics_go_proto"),275 "google.golang.org/genproto/googleapis/genomics/v1alpha2": label.New("go_googleapis", "google/genomics/v1alpha2", "genomics_go_proto"),276 "google.golang.org/genproto/googleapis/geo/type/viewport": label.New("go_googleapis", "google/geo/type", "viewport_go_proto"),277 "google.golang.org/genproto/googleapis/home/enterprise/sdm/v1": label.New("go_googleapis", "google/home/enterprise/sdm/v1", "sdm_go_proto"),278 "google.golang.org/genproto/googleapis/home/graph/v1": label.New("go_googleapis", "google/home/graph/v1", "graph_go_proto"),279 "google.golang.org/genproto/googleapis/iam/admin/v1": label.New("go_googleapis", "google/iam/admin/v1", "admin_go_proto"),280 "google.golang.org/genproto/googleapis/iam/credentials/v1": label.New("go_googleapis", "google/iam/credentials/v1", "credentials_go_proto"),281 "google.golang.org/genproto/googleapis/iam/v1": label.New("go_googleapis", "google/iam/v1", "iam_go_proto"),282 "google.golang.org/genproto/googleapis/iam/v1/logging": label.New("go_googleapis", "google/iam/v1/logging", "logging_go_proto"),283 "google.golang.org/genproto/googleapis/iam/v1beta": label.New("go_googleapis", "google/iam/v1beta", "iam_go_proto"),284 "google.golang.org/genproto/googleapis/identity/accesscontextmanager/type": label.New("go_googleapis", "google/identity/accesscontextmanager/type", "type_go_proto"),285 "google.golang.org/genproto/googleapis/identity/accesscontextmanager/v1": label.New("go_googleapis", "google/identity/accesscontextmanager/v1", "accesscontextmanager_go_proto"),286 "google.golang.org/genproto/googleapis/logging/type": label.New("go_googleapis", "google/logging/type", "ltype_go_proto"),287 "google.golang.org/genproto/googleapis/logging/v2": label.New("go_googleapis", "google/logging/v2", "logging_go_proto"),288 "google.golang.org/genproto/googleapis/longrunning": label.New("go_googleapis", "google/longrunning", "longrunning_go_proto"),289 "google.golang.org/genproto/googleapis/maps/playablelocations/v3": label.New("go_googleapis", "google/maps/playablelocations/v3", "playablelocations_go_proto"),290 "google.golang.org/genproto/googleapis/maps/playablelocations/v3/sample": label.New("go_googleapis", "google/maps/playablelocations/v3/sample", "sample_go_proto"),291 "google.golang.org/genproto/googleapis/maps/roads/v1op": label.New("go_googleapis", "google/maps/roads/v1op", "roads_go_proto"),292 "google.golang.org/genproto/googleapis/maps/routes/v1": label.New("go_googleapis", "google/maps/routes/v1", "routes_go_proto"),293 "google.golang.org/genproto/googleapis/maps/routes/v1alpha": label.New("go_googleapis", "google/maps/routes/v1alpha", "routes_go_proto"),294 "google.golang.org/genproto/googleapis/maps/unity": label.New("go_googleapis", "google/maps/unity", "unity_go_proto"),295 "google.golang.org/genproto/googleapis/monitoring/dashboard/v1": label.New("go_googleapis", "google/monitoring/dashboard/v1", "dashboard_go_proto"),296 "google.golang.org/genproto/googleapis/monitoring/v3": label.New("go_googleapis", "google/monitoring/v3", "monitoring_go_proto"),297 "google.golang.org/genproto/googleapis/partner/aistreams/v1alpha1": label.New("go_googleapis", "google/partner/aistreams/v1alpha1", "aistreams_go_proto"),298 "google.golang.org/genproto/googleapis/privacy/dlp/v2": label.New("go_googleapis", "google/privacy/dlp/v2", "dlp_go_proto"),299 "google.golang.org/genproto/googleapis/pubsub/v1": label.New("go_googleapis", "google/pubsub/v1", "pubsub_go_proto"),300 "google.golang.org/genproto/googleapis/pubsub/v1beta2": label.New("go_googleapis", "google/pubsub/v1beta2", "pubsub_go_proto"),301 "google.golang.org/genproto/googleapis/rpc/code": label.New("go_googleapis", "google/rpc", "code_go_proto"),302 "google.golang.org/genproto/googleapis/rpc/context/attribute_context": label.New("go_googleapis", "google/rpc/context", "attribute_context_go_proto"),303 "google.golang.org/genproto/googleapis/rpc/errdetails": label.New("go_googleapis", "google/rpc", "errdetails_go_proto"),304 "google.golang.org/genproto/googleapis/rpc/status": label.New("go_googleapis", "google/rpc", "status_go_proto"),305 "google.golang.org/genproto/googleapis/search/partnerdataingestion/logging/v1": label.New("go_googleapis", "google/search/partnerdataingestion/logging/v1", "logging_go_proto"),306 "google.golang.org/genproto/googleapis/spanner/admin/database/v1": label.New("go_googleapis", "google/spanner/admin/database/v1", "database_go_proto"),307 "google.golang.org/genproto/googleapis/spanner/admin/instance/v1": label.New("go_googleapis", "google/spanner/admin/instance/v1", "instance_go_proto"),308 "google.golang.org/genproto/googleapis/spanner/v1": label.New("go_googleapis", "google/spanner/v1", "spanner_go_proto"),309 "google.golang.org/genproto/googleapis/storage/v1": label.New("go_googleapis", "google/storage/v1", "storage_go_proto"),310 "google.golang.org/genproto/googleapis/storagetransfer/v1": label.New("go_googleapis", "google/storagetransfer/v1", "storagetransfer_go_proto"),311 "google.golang.org/genproto/googleapis/streetview/publish/v1": label.New("go_googleapis", "google/streetview/publish/v1", "publish_go_proto"),312 "google.golang.org/genproto/googleapis/type/calendarperiod": label.New("go_googleapis", "google/type", "calendarperiod_go_proto"),313 "google.golang.org/genproto/googleapis/type/color": label.New("go_googleapis", "google/type", "color_go_proto"),314 "google.golang.org/genproto/googleapis/type/date": label.New("go_googleapis", "google/type", "date_go_proto"),315 "google.golang.org/genproto/googleapis/type/datetime": label.New("go_googleapis", "google/type", "datetime_go_proto"),316 "google.golang.org/genproto/googleapis/type/dayofweek": label.New("go_googleapis", "google/type", "dayofweek_go_proto"),317 "google.golang.org/genproto/googleapis/type/expr": label.New("go_googleapis", "google/type", "expr_go_proto"),318 "google.golang.org/genproto/googleapis/type/fraction": label.New("go_googleapis", "google/type", "fraction_go_proto"),319 "google.golang.org/genproto/googleapis/type/interval": label.New("go_googleapis", "google/type", "interval_go_proto"),320 "google.golang.org/genproto/googleapis/type/latlng": label.New("go_googleapis", "google/type", "latlng_go_proto"),321 "google.golang.org/genproto/googleapis/type/localized_text": label.New("go_googleapis", "google/type", "localized_text_go_proto"),322 "google.golang.org/genproto/googleapis/type/money": label.New("go_googleapis", "google/type", "money_go_proto"),323 "google.golang.org/genproto/googleapis/type/month": label.New("go_googleapis", "google/type", "month_go_proto"),324 "google.golang.org/genproto/googleapis/type/phone_number": label.New("go_googleapis", "google/type", "phone_number_go_proto"),325 "google.golang.org/genproto/googleapis/type/postaladdress": label.New("go_googleapis", "google/type", "postaladdress_go_proto"),326 "google.golang.org/genproto/googleapis/type/quaternion": label.New("go_googleapis", "google/type", "quaternion_go_proto"),327 "google.golang.org/genproto/googleapis/type/timeofday": label.New("go_googleapis", "google/type", "timeofday_go_proto"),328 "google.golang.org/genproto/googleapis/watcher/v1": label.New("go_googleapis", "google/watcher/v1", "watcher_go_proto"),329 "google.golang.org/genproto/googleapis/grafeas/v1": label.New("go_googleapis", "grafeas/v1", "grafeas_go_proto"),330 "google.golang.org/genproto/googleapis/storage/clouddms/logging/v1": label.New("go_googleapis", "storage/clouddms/logging/v1", "logging_go_proto"),331}...

Full Screen

Full Screen

cloudstack.go

Source:cloudstack.go Github

copy

Full Screen

...135 secret: secret,136 async: async,137 timeout: 300,138 }139 cs.APIDiscovery = NewAPIDiscoveryService(cs)140 cs.Account = NewAccountService(cs)141 cs.Address = NewAddressService(cs)142 cs.AffinityGroup = NewAffinityGroupService(cs)143 cs.Alert = NewAlertService(cs)144 cs.Asyncjob = NewAsyncjobService(cs)145 cs.Authentication = NewAuthenticationService(cs)146 cs.AutoScale = NewAutoScaleService(cs)147 cs.Baremetal = NewBaremetalService(cs)148 cs.Certificate = NewCertificateService(cs)149 cs.CloudIdentifier = NewCloudIdentifierService(cs)150 cs.Cluster = NewClusterService(cs)151 cs.Configuration = NewConfigurationService(cs)152 cs.DiskOffering = NewDiskOfferingService(cs)153 cs.Domain = NewDomainService(cs)154 cs.Event = NewEventService(cs)155 cs.Firewall = NewFirewallService(cs)156 cs.GuestOS = NewGuestOSService(cs)157 cs.Host = NewHostService(cs)158 cs.Hypervisor = NewHypervisorService(cs)159 cs.ISO = NewISOService(cs)160 cs.ImageStore = NewImageStoreService(cs)161 cs.InternalLB = NewInternalLBService(cs)162 cs.LDAP = NewLDAPService(cs)163 cs.Limit = NewLimitService(cs)164 cs.LoadBalancer = NewLoadBalancerService(cs)165 cs.NAT = NewNATService(cs)166 cs.NetworkACL = NewNetworkACLService(cs)167 cs.NetworkDevice = NewNetworkDeviceService(cs)168 cs.NetworkOffering = NewNetworkOfferingService(cs)169 cs.Network = NewNetworkService(cs)170 cs.Nic = NewNicService(cs)171 cs.NiciraNVP = NewNiciraNVPService(cs)172 cs.OvsElement = NewOvsElementService(cs)173 cs.Pod = NewPodService(cs)174 cs.Pool = NewPoolService(cs)175 cs.PortableIP = NewPortableIPService(cs)176 cs.Project = NewProjectService(cs)177 cs.Quota = NewQuotaService(cs)178 cs.Region = NewRegionService(cs)179 cs.Resourcemetadata = NewResourcemetadataService(cs)180 cs.Resourcetags = NewResourcetagsService(cs)181 cs.Router = NewRouterService(cs)182 cs.SSH = NewSSHService(cs)183 cs.SecurityGroup = NewSecurityGroupService(cs)184 cs.ServiceOffering = NewServiceOfferingService(cs)185 cs.Snapshot = NewSnapshotService(cs)186 cs.StoragePool = NewStoragePoolService(cs)187 cs.StratosphereSSP = NewStratosphereSSPService(cs)188 cs.Swift = NewSwiftService(cs)189 cs.SystemCapacity = NewSystemCapacityService(cs)190 cs.SystemVM = NewSystemVMService(cs)191 cs.Template = NewTemplateService(cs)192 cs.UCS = NewUCSService(cs)193 cs.Usage = NewUsageService(cs)194 cs.User = NewUserService(cs)195 cs.VLAN = NewVLANService(cs)196 cs.VMGroup = NewVMGroupService(cs)197 cs.VPC = NewVPCService(cs)198 cs.VPN = NewVPNService(cs)199 cs.VirtualMachine = NewVirtualMachineService(cs)200 cs.Volume = NewVolumeService(cs)201 cs.Zone = NewZoneService(cs)202 return cs203}204// Default non-async client. So for async calls you need to implement and check the async job result yourself. When using205// HTTPS with a self-signed certificate to connect to your CloudStack API, you would probably want to set 'verifyssl' to206// false so the call ignores the SSL errors/warnings.207func NewClient(apiurl string, apikey string, secret string, verifyssl bool) *CloudStackClient {208 cs := newClient(apiurl, apikey, secret, false, verifyssl)209 return cs210}211// For sync API calls this client behaves exactly the same as a standard client call, but for async API calls212// this client will wait until the async job is finished or until the configured AsyncTimeout is reached. When the async213// job finishes successfully it will return actual object received from the API and nil, but when the timout is214// reached it will return the initial object containing the async job ID for the running job and a warning.215func NewAsyncClient(apiurl string, apikey string, secret string, verifyssl bool) *CloudStackClient {216 cs := newClient(apiurl, apikey, secret, true, verifyssl)217 return cs218}219// When using the async client an api call will wait for the async call to finish before returning. The default is to poll for 300 seconds220// seconds, to check if the async job is finished.221func (cs *CloudStackClient) AsyncTimeout(timeoutInSeconds int64) {222 cs.timeout = timeoutInSeconds223}224var AsyncTimeoutErr = errors.New("Timeout while waiting for async job to finish")225// A helper function that you can use to get the result of a running async job. If the job is not finished within the configured226// timeout, the async job returns a AsyncTimeoutErr.227func (cs *CloudStackClient) GetAsyncJobResult(jobid string, timeout int64) (json.RawMessage, error) {228 var timer time.Duration229 currentTime := time.Now().Unix()230 for {231 p := cs.Asyncjob.NewQueryAsyncJobResultParams(jobid)232 r, err := cs.Asyncjob.QueryAsyncJobResult(p)233 if err != nil {234 return nil, err235 }236 // Status 1 means the job is finished successfully237 if r.Jobstatus == 1 {238 return r.Jobresult, nil239 }240 // When the status is 2, the job has failed241 if r.Jobstatus == 2 {242 if r.Jobresulttype == "text" {243 return nil, fmt.Errorf(string(r.Jobresult))244 } else {245 return nil, fmt.Errorf("Undefined error: %s", string(r.Jobresult))246 }247 }248 if time.Now().Unix()-currentTime > timeout {249 return nil, AsyncTimeoutErr250 }251 // Add an (extremely simple) exponential backoff like feature to prevent252 // flooding the CloudStack API253 if timer < 15 {254 timer++255 }256 time.Sleep(timer * time.Second)257 }258}259// Execute the request against a CS API. Will return the raw JSON data returned by the API and nil if260// no error occured. If the API returns an error the result will be nil and the HTTP error code and CS261// error details. If a processing (code) error occurs the result will be nil and the generated error262func (cs *CloudStackClient) newRequest(api string, params url.Values) (json.RawMessage, error) {263 params.Set("apiKey", cs.apiKey)264 params.Set("command", api)265 params.Set("response", "json")266 // Generate signature for API call267 // * Serialize parameters, URL encoding only values and sort them by key, done by encodeValues268 // * Convert the entire argument string to lowercase269 // * Replace all instances of '+' to '%20'270 // * Calculate HMAC SHA1 of argument string with CloudStack secret271 // * URL encode the string and convert to base64272 s := encodeValues(params)273 s2 := strings.ToLower(s)274 s3 := strings.Replace(s2, "+", "%20", -1)275 mac := hmac.New(sha1.New, []byte(cs.secret))276 mac.Write([]byte(s3))277 signature := base64.StdEncoding.EncodeToString(mac.Sum(nil))278 var err error279 var resp *http.Response280 if !cs.HTTPGETOnly && (api == "deployVirtualMachine" || api == "updateVirtualMachine") {281 // The deployVirtualMachine API should be called using a POST call282 // so we don't have to worry about the userdata size283 // Add the unescaped signature to the POST params284 params.Set("signature", signature)285 // Make a POST call286 resp, err = cs.client.PostForm(cs.baseURL, params)287 } else {288 // Create the final URL before we issue the request289 url := cs.baseURL + "?" + s + "&signature=" + url.QueryEscape(signature)290 // Make a GET call291 resp, err = cs.client.Get(url)292 }293 if err != nil {294 return nil, err295 }296 defer resp.Body.Close()297 b, err := ioutil.ReadAll(resp.Body)298 if err != nil {299 return nil, err300 }301 // Need to get the raw value to make the result play nice302 b, err = getRawValue(b)303 if err != nil {304 return nil, err305 }306 if resp.StatusCode != 200 {307 var e CSError308 if err := json.Unmarshal(b, &e); err != nil {309 return nil, err310 }311 return nil, e.Error()312 }313 return b, nil314}315// Custom version of net/url Encode that only URL escapes values316// Unmodified portions here remain under BSD license of The Go Authors: https://go.googlesource.com/go/+/master/LICENSE317func encodeValues(v url.Values) string {318 if v == nil {319 return ""320 }321 var buf bytes.Buffer322 keys := make([]string, 0, len(v))323 for k := range v {324 keys = append(keys, k)325 }326 sort.Strings(keys)327 for _, k := range keys {328 vs := v[k]329 prefix := k + "="330 for _, v := range vs {331 if buf.Len() > 0 {332 buf.WriteByte('&')333 }334 buf.WriteString(prefix)335 buf.WriteString(url.QueryEscape(v))336 }337 }338 return buf.String()339}340// Generic function to get the first raw value from a response as json.RawMessage341func getRawValue(b json.RawMessage) (json.RawMessage, error) {342 var m map[string]json.RawMessage343 if err := json.Unmarshal(b, &m); err != nil {344 return nil, err345 }346 for _, v := range m {347 return v, nil348 }349 return nil, fmt.Errorf("Unable to extract the raw value from:\n\n%s\n\n", string(b))350}351// ProjectIDSetter is an interface that every type that can set a project ID must implement352type ProjectIDSetter interface {353 SetProjectid(string)354}355// WithProject takes either a project name or ID and sets the `projectid` parameter356func WithProject(project string) OptionFunc {357 return func(cs *CloudStackClient, p interface{}) error {358 ps, ok := p.(ProjectIDSetter)359 if !ok || project == "" {360 return nil361 }362 if !IsID(project) {363 id, _, err := cs.Project.GetProjectID(project)364 if err != nil {365 return err366 }367 project = id368 }369 ps.SetProjectid(project)370 return nil371 }372}373// VPCIDSetter is an interface that every type that can set a vpc ID must implement374type VPCIDSetter interface {375 SetVpcid(string)376}377// WithVPCID takes a vpc ID and sets the `vpcid` parameter378func WithVPCID(id string) OptionFunc {379 return func(cs *CloudStackClient, p interface{}) error {380 vs, ok := p.(VPCIDSetter)381 if !ok || id == "" {382 return nil383 }384 vs.SetVpcid(id)385 return nil386 }387}388type APIDiscoveryService struct {389 cs *CloudStackClient390}391func NewAPIDiscoveryService(cs *CloudStackClient) *APIDiscoveryService {392 return &APIDiscoveryService{cs: cs}393}394type AccountService struct {395 cs *CloudStackClient396}397func NewAccountService(cs *CloudStackClient) *AccountService {398 return &AccountService{cs: cs}399}400type AddressService struct {401 cs *CloudStackClient402}403func NewAddressService(cs *CloudStackClient) *AddressService {404 return &AddressService{cs: cs}405}406type AffinityGroupService struct {407 cs *CloudStackClient408}409func NewAffinityGroupService(cs *CloudStackClient) *AffinityGroupService {410 return &AffinityGroupService{cs: cs}411}412type AlertService struct {413 cs *CloudStackClient414}415func NewAlertService(cs *CloudStackClient) *AlertService {416 return &AlertService{cs: cs}417}418type AsyncjobService struct {419 cs *CloudStackClient420}421func NewAsyncjobService(cs *CloudStackClient) *AsyncjobService {422 return &AsyncjobService{cs: cs}423}424type AuthenticationService struct {425 cs *CloudStackClient426}427func NewAuthenticationService(cs *CloudStackClient) *AuthenticationService {428 return &AuthenticationService{cs: cs}429}430type AutoScaleService struct {431 cs *CloudStackClient432}433func NewAutoScaleService(cs *CloudStackClient) *AutoScaleService {434 return &AutoScaleService{cs: cs}435}436type BaremetalService struct {437 cs *CloudStackClient438}439func NewBaremetalService(cs *CloudStackClient) *BaremetalService {440 return &BaremetalService{cs: cs}441}442type CertificateService struct {443 cs *CloudStackClient444}445func NewCertificateService(cs *CloudStackClient) *CertificateService {446 return &CertificateService{cs: cs}447}448type CloudIdentifierService struct {449 cs *CloudStackClient450}451func NewCloudIdentifierService(cs *CloudStackClient) *CloudIdentifierService {452 return &CloudIdentifierService{cs: cs}453}454type ClusterService struct {455 cs *CloudStackClient456}457func NewClusterService(cs *CloudStackClient) *ClusterService {458 return &ClusterService{cs: cs}459}460type ConfigurationService struct {461 cs *CloudStackClient462}463func NewConfigurationService(cs *CloudStackClient) *ConfigurationService {464 return &ConfigurationService{cs: cs}465}466type DiskOfferingService struct {467 cs *CloudStackClient468}469func NewDiskOfferingService(cs *CloudStackClient) *DiskOfferingService {470 return &DiskOfferingService{cs: cs}471}472type DomainService struct {473 cs *CloudStackClient474}475func NewDomainService(cs *CloudStackClient) *DomainService {476 return &DomainService{cs: cs}477}478type EventService struct {479 cs *CloudStackClient480}481func NewEventService(cs *CloudStackClient) *EventService {482 return &EventService{cs: cs}483}484type FirewallService struct {485 cs *CloudStackClient486}487func NewFirewallService(cs *CloudStackClient) *FirewallService {488 return &FirewallService{cs: cs}489}490type GuestOSService struct {491 cs *CloudStackClient492}493func NewGuestOSService(cs *CloudStackClient) *GuestOSService {494 return &GuestOSService{cs: cs}495}496type HostService struct {497 cs *CloudStackClient498}499func NewHostService(cs *CloudStackClient) *HostService {500 return &HostService{cs: cs}501}502type HypervisorService struct {503 cs *CloudStackClient504}505func NewHypervisorService(cs *CloudStackClient) *HypervisorService {506 return &HypervisorService{cs: cs}507}508type ISOService struct {509 cs *CloudStackClient510}511func NewISOService(cs *CloudStackClient) *ISOService {512 return &ISOService{cs: cs}513}514type ImageStoreService struct {515 cs *CloudStackClient516}517func NewImageStoreService(cs *CloudStackClient) *ImageStoreService {518 return &ImageStoreService{cs: cs}519}520type InternalLBService struct {521 cs *CloudStackClient522}523func NewInternalLBService(cs *CloudStackClient) *InternalLBService {524 return &InternalLBService{cs: cs}525}526type LDAPService struct {527 cs *CloudStackClient528}529func NewLDAPService(cs *CloudStackClient) *LDAPService {530 return &LDAPService{cs: cs}531}532type LimitService struct {533 cs *CloudStackClient534}535func NewLimitService(cs *CloudStackClient) *LimitService {536 return &LimitService{cs: cs}537}538type LoadBalancerService struct {539 cs *CloudStackClient540}541func NewLoadBalancerService(cs *CloudStackClient) *LoadBalancerService {542 return &LoadBalancerService{cs: cs}543}544type NATService struct {545 cs *CloudStackClient546}547func NewNATService(cs *CloudStackClient) *NATService {548 return &NATService{cs: cs}549}550type NetworkACLService struct {551 cs *CloudStackClient552}553func NewNetworkACLService(cs *CloudStackClient) *NetworkACLService {554 return &NetworkACLService{cs: cs}555}556type NetworkDeviceService struct {557 cs *CloudStackClient558}559func NewNetworkDeviceService(cs *CloudStackClient) *NetworkDeviceService {560 return &NetworkDeviceService{cs: cs}561}562type NetworkOfferingService struct {563 cs *CloudStackClient564}565func NewNetworkOfferingService(cs *CloudStackClient) *NetworkOfferingService {566 return &NetworkOfferingService{cs: cs}567}568type NetworkService struct {569 cs *CloudStackClient570}571func NewNetworkService(cs *CloudStackClient) *NetworkService {572 return &NetworkService{cs: cs}573}574type NicService struct {575 cs *CloudStackClient576}577func NewNicService(cs *CloudStackClient) *NicService {578 return &NicService{cs: cs}579}580type NiciraNVPService struct {581 cs *CloudStackClient582}583func NewNiciraNVPService(cs *CloudStackClient) *NiciraNVPService {584 return &NiciraNVPService{cs: cs}585}586type OvsElementService struct {587 cs *CloudStackClient588}589func NewOvsElementService(cs *CloudStackClient) *OvsElementService {590 return &OvsElementService{cs: cs}591}592type PodService struct {593 cs *CloudStackClient594}595func NewPodService(cs *CloudStackClient) *PodService {596 return &PodService{cs: cs}597}598type PoolService struct {599 cs *CloudStackClient600}601func NewPoolService(cs *CloudStackClient) *PoolService {602 return &PoolService{cs: cs}603}604type PortableIPService struct {605 cs *CloudStackClient606}607func NewPortableIPService(cs *CloudStackClient) *PortableIPService {608 return &PortableIPService{cs: cs}609}610type ProjectService struct {611 cs *CloudStackClient612}613func NewProjectService(cs *CloudStackClient) *ProjectService {614 return &ProjectService{cs: cs}615}616type QuotaService struct {617 cs *CloudStackClient618}619func NewQuotaService(cs *CloudStackClient) *QuotaService {620 return &QuotaService{cs: cs}621}622type RegionService struct {623 cs *CloudStackClient624}625func NewRegionService(cs *CloudStackClient) *RegionService {626 return &RegionService{cs: cs}627}628type ResourcemetadataService struct {629 cs *CloudStackClient630}631func NewResourcemetadataService(cs *CloudStackClient) *ResourcemetadataService {632 return &ResourcemetadataService{cs: cs}633}634type ResourcetagsService struct {635 cs *CloudStackClient636}637func NewResourcetagsService(cs *CloudStackClient) *ResourcetagsService {638 return &ResourcetagsService{cs: cs}639}640type RouterService struct {641 cs *CloudStackClient642}643func NewRouterService(cs *CloudStackClient) *RouterService {644 return &RouterService{cs: cs}645}646type SSHService struct {647 cs *CloudStackClient648}649func NewSSHService(cs *CloudStackClient) *SSHService {650 return &SSHService{cs: cs}651}652type SecurityGroupService struct {653 cs *CloudStackClient654}655func NewSecurityGroupService(cs *CloudStackClient) *SecurityGroupService {656 return &SecurityGroupService{cs: cs}657}658type ServiceOfferingService struct {659 cs *CloudStackClient660}661func NewServiceOfferingService(cs *CloudStackClient) *ServiceOfferingService {662 return &ServiceOfferingService{cs: cs}663}664type SnapshotService struct {665 cs *CloudStackClient666}667func NewSnapshotService(cs *CloudStackClient) *SnapshotService {668 return &SnapshotService{cs: cs}669}670type StoragePoolService struct {671 cs *CloudStackClient672}673func NewStoragePoolService(cs *CloudStackClient) *StoragePoolService {674 return &StoragePoolService{cs: cs}675}676type StratosphereSSPService struct {677 cs *CloudStackClient678}679func NewStratosphereSSPService(cs *CloudStackClient) *StratosphereSSPService {680 return &StratosphereSSPService{cs: cs}681}682type SwiftService struct {683 cs *CloudStackClient684}685func NewSwiftService(cs *CloudStackClient) *SwiftService {686 return &SwiftService{cs: cs}687}688type SystemCapacityService struct {689 cs *CloudStackClient690}691func NewSystemCapacityService(cs *CloudStackClient) *SystemCapacityService {692 return &SystemCapacityService{cs: cs}693}694type SystemVMService struct {695 cs *CloudStackClient696}697func NewSystemVMService(cs *CloudStackClient) *SystemVMService {698 return &SystemVMService{cs: cs}699}700type TemplateService struct {701 cs *CloudStackClient702}703func NewTemplateService(cs *CloudStackClient) *TemplateService {704 return &TemplateService{cs: cs}705}706type UCSService struct {707 cs *CloudStackClient708}709func NewUCSService(cs *CloudStackClient) *UCSService {710 return &UCSService{cs: cs}711}712type UsageService struct {713 cs *CloudStackClient714}715func NewUsageService(cs *CloudStackClient) *UsageService {716 return &UsageService{cs: cs}717}718type UserService struct {719 cs *CloudStackClient720}721func NewUserService(cs *CloudStackClient) *UserService {722 return &UserService{cs: cs}723}724type VLANService struct {725 cs *CloudStackClient726}727func NewVLANService(cs *CloudStackClient) *VLANService {728 return &VLANService{cs: cs}729}730type VMGroupService struct {731 cs *CloudStackClient732}733func NewVMGroupService(cs *CloudStackClient) *VMGroupService {734 return &VMGroupService{cs: cs}735}736type VPCService struct {737 cs *CloudStackClient738}739func NewVPCService(cs *CloudStackClient) *VPCService {740 return &VPCService{cs: cs}741}742type VPNService struct {743 cs *CloudStackClient744}745func NewVPNService(cs *CloudStackClient) *VPNService {746 return &VPNService{cs: cs}747}748type VirtualMachineService struct {749 cs *CloudStackClient750}751func NewVirtualMachineService(cs *CloudStackClient) *VirtualMachineService {752 return &VirtualMachineService{cs: cs}753}754type VolumeService struct {755 cs *CloudStackClient756}757func NewVolumeService(cs *CloudStackClient) *VolumeService {758 return &VolumeService{cs: cs}759}760type ZoneService struct {761 cs *CloudStackClient762}763func NewZoneService(cs *CloudStackClient) *ZoneService {764 return &ZoneService{cs: cs}765}...

Full Screen

Full Screen

updateclouds_internal_test.go

Source:updateclouds_internal_test.go Github

copy

Full Screen

1// Copyright 2016 Canonical Ltd.2// Licensed under the AGPLv3, see LICENCE file for details.3package cloud4import (5 gc "gopkg.in/check.v1"6 jujucloud "github.com/juju/1.25-upgrade/juju2/cloud"7 "github.com/juju/1.25-upgrade/juju2/testing"8)9type cloudChangesSuite struct {10 testing.BaseSuite11}12var _ = gc.Suite(&cloudChangesSuite{})13func (s *cloudChangesSuite) TestPluralityNone(c *gc.C) {14 c.Assert(adjustPlurality("item", 0), gc.Equals, "")15}16func (s *cloudChangesSuite) TestPluralitySingular(c *gc.C) {17 c.Assert(adjustPlurality("item", 1), gc.Equals, "1 item")18}19func (s *cloudChangesSuite) TestPluralityPlural(c *gc.C) {20 c.Assert(adjustPlurality("item", 2), gc.Equals, "2 items")21}22func (s *cloudChangesSuite) TestFormatSliceEmpty(c *gc.C) {23 c.Assert(formatSlice(nil, "", ""), gc.Equals, "")24 c.Assert(formatSlice([]string{}, "", ""), gc.Equals, "")25}26func (s *cloudChangesSuite) TestFormatSliceOne(c *gc.C) {27 c.Assert(formatSlice([]string{"one"}, "", ""), gc.Equals, "one")28}29func (s *cloudChangesSuite) TestFormatSliceTwo(c *gc.C) {30 c.Assert(formatSlice([]string{"one", "two"}, "", " and "), gc.Equals, "one and two")31}32func (s *cloudChangesSuite) TestFormatSliceMany(c *gc.C) {33 c.Assert(formatSlice([]string{"one", "two", "three"}, ", ", " and "), gc.Equals, "one, two and three")34}35func (s *cloudChangesSuite) TestFormatSlices(c *gc.C) {36 c.Assert(formatSlice(37 []string{"one add", "two and three updates", "four, five and seven deletes"}, "; ", " as well as "),38 gc.Equals,39 "one add; two and three updates as well as four, five and seven deletes",40 )41}42var diffCloudsTests = []struct {43 description string44 new map[string]jujucloud.Cloud45 old map[string]jujucloud.Cloud46 expected string47}{48 {49 description: "no clouds",50 old: nil,51 new: nil,52 expected: "",53 }, {54 description: "empty new clouds, no old clouds",55 old: nil,56 new: map[string]jujucloud.Cloud{},57 expected: "",58 }, {59 description: "no new clouds, empty old clouds",60 old: map[string]jujucloud.Cloud{},61 new: nil,62 expected: "",63 }, {64 description: "both new and old clouds are empty",65 old: map[string]jujucloud.Cloud{},66 new: map[string]jujucloud.Cloud{},67 expected: "",68 }, {69 description: "added 1 cloud",70 old: map[string]jujucloud.Cloud{},71 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{Name: "one"}},72 expected: `731 cloud added:74 added cloud:75 - one`[1:],76 }, {77 description: "added 2 cloud",78 old: map[string]jujucloud.Cloud{},79 new: map[string]jujucloud.Cloud{80 "one": jujucloud.Cloud{Name: "one"},81 "two": jujucloud.Cloud{Name: "two"},82 },83 expected: `842 clouds added:85 added cloud:86 - one87 - two`[1:],88 }, {89 description: "deleted 1 cloud",90 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{Name: "one"}},91 new: map[string]jujucloud.Cloud{},92 expected: `931 cloud deleted:94 deleted cloud:95 - one`[1:],96 }, {97 description: "deleted 2 cloud",98 old: map[string]jujucloud.Cloud{99 "one": jujucloud.Cloud{Name: "one"},100 "two": jujucloud.Cloud{Name: "two"},101 },102 new: map[string]jujucloud.Cloud{},103 expected: `1042 clouds deleted:105 deleted cloud:106 - one107 - two`[1:],108 }, {109 description: "cloud attributes change: endpoint",110 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{111 Name: "one",112 }},113 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{114 Name: "one",115 Endpoint: "old_endpoint",116 }},117 expected: `1181 cloud attribute changed:119 changed cloud attribute:120 - one`[1:],121 }, {122 description: "cloud attributes change: identity endpoint",123 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{124 Name: "one",125 }},126 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{127 Name: "one",128 IdentityEndpoint: "old_endpoint"},129 },130 expected: `1311 cloud attribute changed:132 changed cloud attribute:133 - one`[1:],134 }, {135 description: "cloud attributes change: storage endpoint",136 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{137 Name: "one",138 }},139 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{140 Name: "one",141 StorageEndpoint: "old_endpoint"},142 },143 expected: `1441 cloud attribute changed:145 changed cloud attribute:146 - one`[1:],147 }, {148 description: "cloud attributes change: type",149 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{150 Name: "one",151 }},152 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{153 Name: "one",154 Type: "type",155 }},156 expected: `1571 cloud attribute changed:158 changed cloud attribute:159 - one`[1:],160 }, {161 description: "cloud attributes change: auth type added",162 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{163 Name: "one",164 }},165 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{166 Name: "one",167 AuthTypes: []jujucloud.AuthType{jujucloud.AccessKeyAuthType}},168 },169 expected: `1701 cloud attribute changed:171 changed cloud attribute:172 - one`[1:],173 }, {174 description: "cloud attributes change: auth type deleted",175 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{176 Name: "one",177 AuthTypes: []jujucloud.AuthType{jujucloud.AccessKeyAuthType}},178 },179 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{180 Name: "one",181 }},182 expected: `1831 cloud attribute changed:184 changed cloud attribute:185 - one`[1:],186 }, {187 description: "cloud attributes change: auth type changed",188 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{189 Name: "one",190 AuthTypes: []jujucloud.AuthType{jujucloud.AccessKeyAuthType}},191 },192 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{193 Name: "one",194 AuthTypes: []jujucloud.AuthType{jujucloud.JSONFileAuthType}},195 },196 expected: `1971 cloud attribute changed:198 changed cloud attribute:199 - one`[1:],200 }, {201 description: "cloud attributes change: region added",202 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{203 Name: "one",204 }},205 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{206 Name: "one",207 Regions: []jujucloud.Region{jujucloud.Region{Name: "a"}}},208 },209 expected: `2101 cloud region added:211 added cloud region:212 - one/a`[1:],213 }, {214 description: "cloud attributes change: region deleted",215 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{216 Name: "one",217 Regions: []jujucloud.Region{jujucloud.Region{Name: "a"}}},218 },219 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{220 Name: "one",221 }},222 expected: `2231 cloud region deleted:224 deleted cloud region:225 - one/a`[1:],226 }, {227 description: "cloud attributes change: region changed",228 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{229 Name: "one",230 Regions: []jujucloud.Region{jujucloud.Region{Name: "a"}}},231 },232 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{233 Name: "one",234 Regions: []jujucloud.Region{jujucloud.Region{Name: "a", Endpoint: "old_endpoint"}}},235 },236 expected: `2371 cloud region changed:238 changed cloud region:239 - one/a`[1:],240 }, {241 description: "cloud attributes change: region changed",242 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{243 Name: "one",244 Regions: []jujucloud.Region{jujucloud.Region{Name: "a", Endpoint: "old_endpoint"}}},245 },246 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{247 Name: "one",248 Regions: []jujucloud.Region{jujucloud.Region{Name: "a"}}},249 },250 expected: `2511 cloud region changed:252 changed cloud region:253 - one/a`[1:],254 }, {255 description: "cloud attributes change: region changed",256 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{257 Name: "one",258 Regions: []jujucloud.Region{jujucloud.Region{Name: "a", Endpoint: "old_endpoint"}}},259 },260 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{261 Name: "one",262 Regions: []jujucloud.Region{jujucloud.Region{Name: "a", Endpoint: "new_endpoint"}}},263 },264 expected: `2651 cloud region changed:266 changed cloud region:267 - one/a`[1:],268 }, {269 description: "cloud attributes change: region changed",270 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{271 Name: "one",272 Regions: []jujucloud.Region{jujucloud.Region{Name: "a"}}},273 },274 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{275 Name: "one",276 Regions: []jujucloud.Region{jujucloud.Region{Name: "a", StorageEndpoint: "old_endpoint"}}},277 },278 expected: `2791 cloud region changed:280 changed cloud region:281 - one/a`[1:],282 }, {283 description: "cloud attributes change: region changed",284 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{285 Name: "one",286 Regions: []jujucloud.Region{jujucloud.Region{Name: "a", StorageEndpoint: "old_endpoint"}}},287 },288 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{289 Name: "one",290 Regions: []jujucloud.Region{jujucloud.Region{Name: "a"}}},291 },292 expected: `2931 cloud region changed:294 changed cloud region:295 - one/a`[1:],296 }, {297 description: "cloud attributes change: region changed",298 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{299 Name: "one",300 Regions: []jujucloud.Region{jujucloud.Region{Name: "a", StorageEndpoint: "old_endpoint"}}},301 },302 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{303 Name: "one",304 Regions: []jujucloud.Region{jujucloud.Region{Name: "a", StorageEndpoint: "new_endpoint"}}},305 },306 expected: `3071 cloud region changed:308 changed cloud region:309 - one/a`[1:],310 }, {311 description: "cloud details changed",312 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{313 Name: "one",314 Type: "type", Regions: []jujucloud.Region{jujucloud.Region{Name: "a"}}},315 },316 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{317 Name: "one",318 }},319 expected: `3201 cloud attribute changed as well as 1 cloud region deleted:321 changed cloud attribute:322 - one323 deleted cloud region:324 - one/a`[1:],325 }, {326 description: "cloud details changed, another way",327 old: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{328 Name: "one",329 }},330 new: map[string]jujucloud.Cloud{"one": jujucloud.Cloud{331 Name: "one",332 Type: "type", Regions: []jujucloud.Region{jujucloud.Region{Name: "a"}}},333 },334 expected: `3351 cloud region added as well as 1 cloud attribute changed:336 added cloud region:337 - one/a338 changed cloud attribute:339 - one`[1:],340 }, {341 description: "all cloud change types",342 old: map[string]jujucloud.Cloud{343 "one": jujucloud.Cloud{344 Name: "one",345 Type: "type", Regions: []jujucloud.Region{jujucloud.Region{Name: "a"}},346 },347 "three": jujucloud.Cloud{Name: "three"}, // deleting348 },349 new: map[string]jujucloud.Cloud{350 "one": jujucloud.Cloud{Name: "one"}, // updating351 "two": jujucloud.Cloud{Name: "two"}, // adding352 },353 expected: `3541 cloud added; 1 cloud attribute changed as well as 1 cloud and 1 cloud region deleted:355 added cloud:356 - two357 changed cloud attribute:358 - one359 deleted cloud:360 - three361 deleted cloud region:362 - one/a`[1:],363 }, {364 description: "all cloud change types, another way",365 old: map[string]jujucloud.Cloud{366 "one": jujucloud.Cloud{Name: "one"}, // updating367 "two": jujucloud.Cloud{Name: "two"}, // deleting368 },369 new: map[string]jujucloud.Cloud{370 "one": jujucloud.Cloud{371 Name: "three",372 Type: "type",373 Regions: []jujucloud.Region{jujucloud.Region{Name: "a"}},374 },375 "three": jujucloud.Cloud{376 Name: "three",377 }, // adding378 },379 expected: `3801 cloud and 1 cloud region added; 1 cloud attribute changed as well as 1 cloud deleted:381 added cloud:382 - three383 added cloud region:384 - one/a385 changed cloud attribute:386 - one387 deleted cloud:388 - two`[1:],389 },390}391func (s *cloudChangesSuite) TestDiffClouds(c *gc.C) {392 for i, test := range diffCloudsTests {393 c.Logf("%d: %v", i, test.description)394 c.Check(diffClouds(test.new, test.old), gc.Equals, test.expected)395 }396}...

Full Screen

Full Screen

New

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 projectID, err := metadata.ProjectID()4 if err != nil {5 fmt.Println(err)6 }7 fmt.Println("Project ID: ", projectID)8}9import (10func main() {11 projectID, err := metadata.ProjectID()12 if err != nil {13 fmt.Println(err)14 }15 fmt.Println("Project ID: ", projectID)16}17import (18func main() {19 projectID, err := metadata.ProjectID()20 if err != nil {21 fmt.Println(err)22 }23 fmt.Println("Project ID: ", projectID)24}25import (26func main() {27 projectID, err := metadata.ProjectID()28 if err != nil {29 fmt.Println(err)30 }31 fmt.Println("Project ID: ", projectID)32}33import (34func main() {35 projectID, err := metadata.ProjectID()36 if err != nil {37 fmt.Println(err)38 }39 fmt.Println("Project ID: ", projectID)40}

Full Screen

Full Screen

New

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 myCloud := cloud.New(1, 2, 3)4 fmt.Println(myCloud)5}6import (7func main() {8 myCloud := cloud.New(1, 2, 3)9 fmt.Println(myCloud)10}11import (12func main() {13 myCloud := cloud.New(1, 2, 3)14 fmt.Println(myCloud)15}16import (17func main() {18 myCloud := cloud.New(1, 2, 3)19 fmt.Println(myCloud)20}21import (22func main() {23 myCloud := cloud.New(1, 2, 3)24 fmt.Println(myCloud)25}26import (27func main() {28 myCloud := cloud.New(1, 2, 3)29 fmt.Println(myCloud)30}31import (32func main() {33 myCloud := cloud.New(1, 2, 3)34 fmt.Println(myCloud)35}36import (37func main() {38 myCloud := cloud.New(1, 2, 3)39 fmt.Println(myCloud)40}41import (

Full Screen

Full Screen

New

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 cloud1 := cloud.New("Google")4 fmt.Println(cloud1)5}6{Google}7import (8func main() {9 cloud1 := cloud.New("Google")10 fmt.Println(cloud1)11}12{Google}13import (14func main() {15 cloud1 := cloud.New("Google")16 fmt.Println(cloud1)17}18{Google}19import (20func main() {21 cloud1 := cloud.New("Google")22 fmt.Println(cloud1)23}24{Google}25import (26func main() {27 cloud1 := cloud.New("Google")28 fmt.Println(cloud1)29}30{Google}31import (32func main() {33 cloud1 := cloud.New("Google")34 fmt.Println(cloud1)35}36{Google}

Full Screen

Full Screen

New

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 cloud1 := cloud.New("AWS", "US")4 fmt.Println(cloud1)5}6import (7func main() {8 cloud1 := cloud.New("AWS", "US")9 fmt.Println(cloud1)10}11import (12func main() {13 cloud1 := cloud.New("AWS", "US")14 fmt.Println(cloud1)15}16import (17func main() {18 cloud1 := cloud.New("AWS", "US")19 fmt.Println(cloud1)20}21import (22func main() {23 cloud1 := cloud.New("AWS", "US")24 fmt.Println(cloud1)25}26import (27func main() {28 cloud1 := cloud.New("AWS", "US")29 fmt.Println(cloud1)30}31import (32func main() {33 cloud1 := cloud.New("AWS", "US")34 fmt.Println(cloud1)35}36import (37func main() {

Full Screen

Full Screen

New

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 cloud := cloud.New("AWS")4 fmt.Println(cloud.Name)5}6import (7func main() {8 fmt.Println(cloud.Name)9}10import (11func main() {12 cloud := cloud.New("AWS")13 fmt.Println(cloud.Name)14}15import (16func main() {17 cloud := cloud.New("AWS")18 fmt.Println(cloud.Name)19}20import (21func main() {22 cloud := cloud.New("AWS")23 fmt.Println(cloud.Name)24}25import (26func main() {27 cloud := cloud.New("AWS")28 fmt.Println(cloud.Name)29}30import (31func main() {32 cloud := cloud.New("AWS")33 fmt.Println(cloud.Name)34}35import (

Full Screen

Full Screen

New

Using AI Code Generation

copy

Full Screen

1import "fmt"2func main() {3 c := cloud.New("aws")4 c.Launch()5 c.Stop()6}7import "fmt"8func main() {9 c := cloud.New("azure")10 c.Launch()11 c.Stop()12}13import "fmt"14func main() {15 c := cloud.New("gcp")16 c.Launch()17 c.Stop()18}

Full Screen

Full Screen

New

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 c := cloud.New("gce", 10)4 fmt.Println(c.Type())5 fmt.Println(c.Count())6 c.Add(5)7 fmt.Println(c.Count())8 c.Remove(3)9 fmt.Println(c.Count())10}11import (12func main() {13 c1 := cloud.NewAWS(10)14 fmt.Println(c1.Type())15 fmt.Println(c1.Count())16 c1.Add(5)17 fmt.Println(c1.Count())18 c1.Remove(3)19 fmt.Println(c1.Count())20 c2 := cloud.NewGCE(5)21 fmt.Println(c2.Type())22 fmt.Println(c2.Count())23 c2.Add(3)24 fmt.Println(c2.Count())25 c2.Remove(1)26 fmt.Println(c2.Count())27}28import (29func main() {30 c1 := cloud.NewAWS(10)31 fmt.Println(c1.Type())32 fmt.Println(c1.Count())33 c1.Add(5)34 fmt.Println(c1.Count())35 c1.Remove(3)36 fmt.Println(c1.Count())37 c2 := cloud.NewGCE(5)38 fmt.Println(c2.Type())39 fmt.Println(c2.Count())40 c2.Add(3)41 fmt.Println(c2.Count())42 c2.Remove(1)43 fmt.Println(c2.Count())44}45import (46func main() {47 c1 := cloud.NewAWS(10)48 fmt.Println(c1.Type())49 fmt.Println(c1.Count())50 c1.Add(5)51 fmt.Println(c1.Count())52 c1.Remove(3)53 fmt.Println(c

Full Screen

Full Screen

New

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 c := cloud.New("AWS")4 fmt.Println(*c)5}6{AWS}7type Cloud struct {8}9func New(name string) *Cloud {10 return &Cloud{name}11}

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run K6 automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Most used method in

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful