Bump google.golang.org/api
This commit is contained in:
300
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-api.json
generated
vendored
300
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-api.json
generated
vendored
@@ -60,11 +60,6 @@
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"location": "query",
|
||||
@@ -85,12 +80,6 @@
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"default": "true",
|
||||
"description": "Pretty-print response.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
@@ -150,12 +139,12 @@
|
||||
"parameterOrder": [],
|
||||
"parameters": {
|
||||
"filter": {
|
||||
"description": "The standard list filter.",
|
||||
"description": "Required. A filter for matching the requested operations.\u003cbr\u003e\u003cbr\u003e The supported formats of \u003cb\u003efilter\u003c/b\u003e are:\u003cbr\u003e To query for specific function: \u003ccode\u003eproject:*,location:*,function:*\u003c/code\u003e\u003cbr\u003e To query for all of the latest operations for a project: \u003ccode\u003eproject:*,latest:true\u003c/code\u003e",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "The name of the operation's parent resource.",
|
||||
"description": "Must not be set.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
@@ -231,7 +220,7 @@
|
||||
"functions": {
|
||||
"methods": {
|
||||
"call": {
|
||||
"description": "Invokes synchronously deployed function. To be used for testing, very\nlimited traffic allowed.",
|
||||
"description": "Synchronously invokes a deployed Cloud Function. To be used for testing\npurposes as very limited traffic is allowed. For more information on\nthe actual limits, refer to\n[Rate Limits](https://cloud.google.com/functions/quotas#rate_limits).",
|
||||
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:call",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudfunctions.projects.locations.functions.call",
|
||||
@@ -340,7 +329,7 @@
|
||||
]
|
||||
},
|
||||
"generateUploadUrl": {
|
||||
"description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls.\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.\n\nWhen uploading source code to the generated signed URL, please follow\nthese restrictions:\n\n* Source file type should be a zip file.\n* Source file size should not exceed 100MB limit.\n\nWhen making a HTTP PUT request, these two headers need to be specified:\n\n* `content-type: application/zip`\n* `x-goog-content-length-range: 0,104857600`",
|
||||
"description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls.\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.\n\nWhen uploading source code to the generated signed URL, please follow\nthese restrictions:\n\n* Source file type should be a zip file.\n* Source file size should not exceed 100MB limit.\n* No credentials should be attached - the signed URLs provide access to the\n target bucket using internal service identity; if credentials were\n attached, the identity from the credentials would be used, but that\n identity does not have permissions to upload files to the URL.\n\nWhen making a HTTP PUT request, these two headers need to be specified:\n\n* `content-type: application/zip`\n* `x-goog-content-length-range: 0,104857600`\n\nAnd this header SHOULD NOT be specified:\n\n* `Authorization: Bearer YOUR_TOKEN`",
|
||||
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/functions:generateUploadUrl",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudfunctions.projects.locations.functions.generateUploadUrl",
|
||||
@@ -392,6 +381,31 @@
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"getIamPolicy": {
|
||||
"description": "Gets the IAM access control policy for a function.\nReturns an empty policy if the function exists and does not have a policy\nset.",
|
||||
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:getIamPolicy",
|
||||
"httpMethod": "GET",
|
||||
"id": "cloudfunctions.projects.locations.functions.getIamPolicy",
|
||||
"parameterOrder": [
|
||||
"resource"
|
||||
],
|
||||
"parameters": {
|
||||
"resource": {
|
||||
"description": "REQUIRED: The resource for which the policy is being requested.\nSee the operation documentation for the appropriate value for this field.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/{+resource}:getIamPolicy",
|
||||
"response": {
|
||||
"$ref": "Policy"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"list": {
|
||||
"description": "Returns a list of functions that belong to the requested project.",
|
||||
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/functions",
|
||||
@@ -461,6 +475,62 @@
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"setIamPolicy": {
|
||||
"description": "Sets the IAM access control policy on the specified function.\nReplaces any existing policy.",
|
||||
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:setIamPolicy",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudfunctions.projects.locations.functions.setIamPolicy",
|
||||
"parameterOrder": [
|
||||
"resource"
|
||||
],
|
||||
"parameters": {
|
||||
"resource": {
|
||||
"description": "REQUIRED: The resource for which the policy is being specified.\nSee the operation documentation for the appropriate value for this field.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/{+resource}:setIamPolicy",
|
||||
"request": {
|
||||
"$ref": "SetIamPolicyRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "Policy"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
},
|
||||
"testIamPermissions": {
|
||||
"description": "Tests the specified permissions against the IAM access control policy\nfor a function.\nIf the function does not exist, this will return an empty set of\npermissions, not a NOT_FOUND error.",
|
||||
"flatPath": "v1/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:testIamPermissions",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudfunctions.projects.locations.functions.testIamPermissions",
|
||||
"parameterOrder": [
|
||||
"resource"
|
||||
],
|
||||
"parameters": {
|
||||
"resource": {
|
||||
"description": "REQUIRED: The resource for which the policy detail is being requested.\nSee the operation documentation for the appropriate value for this field.",
|
||||
"location": "path",
|
||||
"pattern": "^projects/[^/]+/locations/[^/]+/functions/[^/]+$",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"path": "v1/{+resource}:testIamPermissions",
|
||||
"request": {
|
||||
"$ref": "TestIamPermissionsRequest"
|
||||
},
|
||||
"response": {
|
||||
"$ref": "TestIamPermissionsResponse"
|
||||
},
|
||||
"scopes": [
|
||||
"https://www.googleapis.com/auth/cloud-platform"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -469,9 +539,79 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180420",
|
||||
"revision": "20190305",
|
||||
"rootUrl": "https://cloudfunctions.googleapis.com/",
|
||||
"schemas": {
|
||||
"AuditConfig": {
|
||||
"description": "Specifies the audit configuration for a service.\nThe configuration determines which permission types are logged, and what\nidentities, if any, are exempted from logging.\nAn AuditConfig must have one or more AuditLogConfigs.\n\nIf there are AuditConfigs for both `allServices` and a specific service,\nthe union of the two AuditConfigs is used for that service: the log_types\nspecified in each AuditConfig are enabled, and the exempted_members in each\nAuditLogConfig are exempted.\n\nExample Policy with multiple AuditConfigs:\n\n {\n \"audit_configs\": [\n {\n \"service\": \"allServices\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:foo@gmail.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\",\n },\n {\n \"log_type\": \"ADMIN_READ\",\n }\n ]\n },\n {\n \"service\": \"fooservice.googleapis.com\"\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n },\n {\n \"log_type\": \"DATA_WRITE\",\n \"exempted_members\": [\n \"user:bar@gmail.com\"\n ]\n }\n ]\n }\n ]\n }\n\nFor fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ\nlogging. It also exempts foo@gmail.com from DATA_READ logging, and\nbar@gmail.com from DATA_WRITE logging.",
|
||||
"id": "AuditConfig",
|
||||
"properties": {
|
||||
"auditLogConfigs": {
|
||||
"description": "The configuration for logging of each type of permission.",
|
||||
"items": {
|
||||
"$ref": "AuditLogConfig"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"service": {
|
||||
"description": "Specifies a service that will be enabled for audit logging.\nFor example, `storage.googleapis.com`, `cloudsql.googleapis.com`.\n`allServices` is a special value that covers all services.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"AuditLogConfig": {
|
||||
"description": "Provides the configuration for logging a type of permissions.\nExample:\n\n {\n \"audit_log_configs\": [\n {\n \"log_type\": \"DATA_READ\",\n \"exempted_members\": [\n \"user:foo@gmail.com\"\n ]\n },\n {\n \"log_type\": \"DATA_WRITE\",\n }\n ]\n }\n\nThis enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting\nfoo@gmail.com from DATA_READ logging.",
|
||||
"id": "AuditLogConfig",
|
||||
"properties": {
|
||||
"exemptedMembers": {
|
||||
"description": "Specifies the identities that do not cause logging for this type of\npermission.\nFollows the same format of Binding.members.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"logType": {
|
||||
"description": "The log type that this config enables.",
|
||||
"enum": [
|
||||
"LOG_TYPE_UNSPECIFIED",
|
||||
"ADMIN_READ",
|
||||
"DATA_WRITE",
|
||||
"DATA_READ"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"Default case. Should never be this.",
|
||||
"Admin reads. Example: CloudIAM getIamPolicy",
|
||||
"Data writes. Example: CloudSQL Users create",
|
||||
"Data reads. Example: CloudSQL Users list"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Binding": {
|
||||
"description": "Associates `members` with a `role`.",
|
||||
"id": "Binding",
|
||||
"properties": {
|
||||
"condition": {
|
||||
"$ref": "Expr",
|
||||
"description": "Unimplemented. The condition that is associated with this binding.\nNOTE: an unsatisfied condition will not allow user access via current\nbinding. Different bindings, including their conditions, are examined\nindependently."
|
||||
},
|
||||
"members": {
|
||||
"description": "Specifies the identities requesting access for a Cloud Platform resource.\n`members` can have the following values:\n\n* `allUsers`: A special identifier that represents anyone who is\n on the internet; with or without a Google account.\n\n* `allAuthenticatedUsers`: A special identifier that represents anyone\n who is authenticated with a Google account or a service account.\n\n* `user:{emailid}`: An email address that represents a specific Google\n account. For example, `alice@gmail.com` .\n\n\n* `serviceAccount:{emailid}`: An email address that represents a service\n account. For example, `my-other-app@appspot.gserviceaccount.com`.\n\n* `group:{emailid}`: An email address that represents a Google group.\n For example, `admins@example.com`.\n\n\n* `domain:{domain}`: The G Suite domain (primary) that represents all the\n users of that domain. For example, `google.com` or `example.com`.\n\n",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"role": {
|
||||
"description": "Role that is assigned to `members`.\nFor example, `roles/viewer`, `roles/editor`, or `roles/owner`.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"CallFunctionRequest": {
|
||||
"description": "Request for the `CallFunction` method.",
|
||||
"id": "CallFunctionRequest",
|
||||
@@ -503,7 +643,7 @@
|
||||
"type": "object"
|
||||
},
|
||||
"CloudFunction": {
|
||||
"description": "Describes a Cloud Function that contains user computation executed in\nresponse to an event. It encapsulate function and triggers configurations.",
|
||||
"description": "Describes a Cloud Function that contains user computation executed in\nresponse to an event. It encapsulate function and triggers configurations.\nLINT.IfChange",
|
||||
"id": "CloudFunction",
|
||||
"properties": {
|
||||
"availableMemoryMb": {
|
||||
@@ -519,6 +659,13 @@
|
||||
"description": "The name of the function (as defined in source code) that will be\nexecuted. Defaults to the resource name suffix, if not specified. For\nbackward compatibility, if function with given name is not found, then the\nsystem will try to use function named \"function\".\nFor Node.js this is name of a function exported by the module specified\nin `source_location`.",
|
||||
"type": "string"
|
||||
},
|
||||
"environmentVariables": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Environment variables that shall be available during function execution.",
|
||||
"type": "object"
|
||||
},
|
||||
"eventTrigger": {
|
||||
"$ref": "EventTrigger",
|
||||
"description": "A source that fires events in response to a condition in another service."
|
||||
@@ -534,16 +681,25 @@
|
||||
"description": "Labels associated with this Cloud Function.",
|
||||
"type": "object"
|
||||
},
|
||||
"maxInstances": {
|
||||
"description": "The limit on the maximum number of function instances that may coexist at a\ngiven time. This feature is currently in alpha, available only for\nwhitelisted users.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"description": "A user-defined name of the function. Function names must be unique\nglobally and match pattern `projects/*/locations/*/functions/*`",
|
||||
"type": "string"
|
||||
},
|
||||
"network": {
|
||||
"description": "The VPC Network that this cloud function can connect to. It can be\neither the fully-qualified URI, or the short name of the network resource.\nIf the short network name is used, the network must belong to the same\nproject. Otherwise, it must belong to a project within the same\norganization. The format of this field is either\n`projects/{project}/global/networks/{network}` or `{network}`, where\n{project} is a project id where the network is defined, and {network} is\nthe short name of the network.\n\nThis field is mutually exclusive with `vpc_connector` and will be replaced\nby it.\n\nSee [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for\nmore information on connecting Cloud projects.\n\nThis feature is currently in alpha, available only for whitelisted users.",
|
||||
"type": "string"
|
||||
},
|
||||
"runtime": {
|
||||
"description": "The runtime in which the function is going to run. If empty, defaults to\nNode.js 6.",
|
||||
"description": "The runtime in which the function is going to run. Example values include:\n`go111`: for Go 1.11\n`nodejs6`: for Node.js 6\n`nodejs8`: for Node.js 8\n`nodejs10`: for Node.js 10\n`python37`: for Python 3.7\n`ruby25`: for Ruby 2.5\n\nIf empty, defaults to `nodejs6`.",
|
||||
"type": "string"
|
||||
},
|
||||
"serviceAccountEmail": {
|
||||
"description": "Output only. The email of the function's service account.",
|
||||
"description": "The email of the function's service account. If empty, defaults to\n{project_id}@appspot.gserviceaccount.com.",
|
||||
"type": "string"
|
||||
},
|
||||
"sourceArchiveUrl": {
|
||||
@@ -592,6 +748,10 @@
|
||||
"description": "Output only.\nThe version identifier of the Cloud Function. Each deployment attempt\nresults in a new version of a function being created.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"vpcConnector": {
|
||||
"description": "The VPC Network Connector that this cloud function can connect to. It can\nbe either the fully-qualified URI, or the short name of the network\nconnector resource. The format of this field is\n`projects/*/locations/*/connectors/*`\n\nThis field is mutually exclusive with `network` field and will eventually\nreplace it.\n\nSee [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for\nmore information on connecting Cloud projects.\n\nThis feature is currently in alpha, available only for whitelisted users.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -619,6 +779,29 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Expr": {
|
||||
"description": "Represents an expression text. Example:\n\n title: \"User account presence\"\n description: \"Determines whether the request has a user account\"\n expression: \"size(request.user) \u003e 0\"",
|
||||
"id": "Expr",
|
||||
"properties": {
|
||||
"description": {
|
||||
"description": "An optional description of the expression. This is a longer text which\ndescribes the expression, e.g. when hovered over it in a UI.",
|
||||
"type": "string"
|
||||
},
|
||||
"expression": {
|
||||
"description": "Textual representation of an expression in\nCommon Expression Language syntax.\n\nThe application context of the containing message determines which\nwell-known feature set of CEL is supported.",
|
||||
"type": "string"
|
||||
},
|
||||
"location": {
|
||||
"description": "An optional string indicating the location of the expression for error\nreporting, e.g. a file name and a position in the file.",
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"description": "An optional title for the expression, i.e. a short string describing\nits purpose. This can be used e.g. in UIs which allow to enter the\nexpression.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"FailurePolicy": {
|
||||
"description": "Describes the policy in case of function's execution failure.\nIf empty, then defaults to ignoring failures (i.e. not retrying them).",
|
||||
"id": "FailurePolicy",
|
||||
@@ -842,7 +1025,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"versionId": {
|
||||
"description": "Version id of the function created or updated by an API call.\nThis field is only pupulated for Create and Update operations.",
|
||||
"description": "Version id of the function created or updated by an API call.\nThis field is only populated for Create and Update operations.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
}
|
||||
@@ -887,19 +1070,66 @@
|
||||
"type": "string"
|
||||
},
|
||||
"versionId": {
|
||||
"description": "Version id of the function created or updated by an API call.\nThis field is only pupulated for Create and Update operations.",
|
||||
"description": "Version id of the function created or updated by an API call.\nThis field is only populated for Create and Update operations.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Policy": {
|
||||
"description": "Defines an Identity and Access Management (IAM) policy. It is used to\nspecify access control policies for Cloud Platform resources.\n\n\nA `Policy` consists of a list of `bindings`. A `binding` binds a list of\n`members` to a `role`, where the members can be user accounts, Google groups,\nGoogle domains, and service accounts. A `role` is a named list of permissions\ndefined by IAM.\n\n**JSON Example**\n\n {\n \"bindings\": [\n {\n \"role\": \"roles/owner\",\n \"members\": [\n \"user:mike@example.com\",\n \"group:admins@example.com\",\n \"domain:google.com\",\n \"serviceAccount:my-other-app@appspot.gserviceaccount.com\"\n ]\n },\n {\n \"role\": \"roles/viewer\",\n \"members\": [\"user:sean@example.com\"]\n }\n ]\n }\n\n**YAML Example**\n\n bindings:\n - members:\n - user:mike@example.com\n - group:admins@example.com\n - domain:google.com\n - serviceAccount:my-other-app@appspot.gserviceaccount.com\n role: roles/owner\n - members:\n - user:sean@example.com\n role: roles/viewer\n\n\nFor a description of IAM and its features, see the\n[IAM developer's guide](https://cloud.google.com/iam/docs).",
|
||||
"id": "Policy",
|
||||
"properties": {
|
||||
"auditConfigs": {
|
||||
"description": "Specifies cloud audit logging configuration for this policy.",
|
||||
"items": {
|
||||
"$ref": "AuditConfig"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"bindings": {
|
||||
"description": "Associates a list of `members` to a `role`.\n`bindings` with no members will result in an error.",
|
||||
"items": {
|
||||
"$ref": "Binding"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"etag": {
|
||||
"description": "`etag` is used for optimistic concurrency control as a way to help\nprevent simultaneous updates of a policy from overwriting each other.\nIt is strongly suggested that systems make use of the `etag` in the\nread-modify-write cycle to perform policy updates in order to avoid race\nconditions: An `etag` is returned in the response to `getIamPolicy`, and\nsystems are expected to put that etag in the request to `setIamPolicy` to\nensure that their change will be applied to the same version of the policy.\n\nIf no `etag` is provided in the call to `setIamPolicy`, then the existing\npolicy is overwritten blindly.",
|
||||
"format": "byte",
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"description": "Deprecated.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Retry": {
|
||||
"description": "Describes the retry policy in case of function's execution failure.\nA function execution will be retried on any failure.\nA failed execution will be retried up to 7 days with an exponential backoff\n(capped at 10 seconds).\nRetried execution is charged as any other execution.",
|
||||
"id": "Retry",
|
||||
"properties": {},
|
||||
"type": "object"
|
||||
},
|
||||
"SetIamPolicyRequest": {
|
||||
"description": "Request message for `SetIamPolicy` method.",
|
||||
"id": "SetIamPolicyRequest",
|
||||
"properties": {
|
||||
"policy": {
|
||||
"$ref": "Policy",
|
||||
"description": "REQUIRED: The complete policy to be applied to the `resource`. The size of\nthe policy is limited to a few 10s of KB. An empty policy is a\nvalid policy but certain Cloud Platform services (such as Projects)\nmight reject them."
|
||||
},
|
||||
"updateMask": {
|
||||
"description": "OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only\nthe fields in the mask will be modified. If no mask is provided, the\nfollowing default mask is used:\npaths: \"bindings, etag\"\nThis field is only used by Cloud IAM.",
|
||||
"format": "google-fieldmask",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"SourceRepository": {
|
||||
"description": "Describes SourceRepository, used to represent parameters related to\nsource repository where a function is hosted.",
|
||||
"id": "SourceRepository",
|
||||
@@ -941,6 +1171,34 @@
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"TestIamPermissionsRequest": {
|
||||
"description": "Request message for `TestIamPermissions` method.",
|
||||
"id": "TestIamPermissionsRequest",
|
||||
"properties": {
|
||||
"permissions": {
|
||||
"description": "The set of permissions to check for the `resource`. Permissions with\nwildcards (such as '*' or 'storage.*') are not allowed. For more\ninformation see\n[IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"TestIamPermissionsResponse": {
|
||||
"description": "Response message for `TestIamPermissions` method.",
|
||||
"id": "TestIamPermissionsResponse",
|
||||
"properties": {
|
||||
"permissions": {
|
||||
"description": "A subset of `TestPermissionsRequest.permissions` that the caller is\nallowed.",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"servicePath": "",
|
||||
|
1190
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-gen.go
generated
vendored
1190
vendor/google.golang.org/api/cloudfunctions/v1/cloudfunctions-gen.go
generated
vendored
File diff suppressed because it is too large
Load Diff
47
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-api.json
generated
vendored
47
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-api.json
generated
vendored
@@ -60,11 +60,6 @@
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"bearer_token": {
|
||||
"description": "OAuth bearer token.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"callback": {
|
||||
"description": "JSONP",
|
||||
"location": "query",
|
||||
@@ -85,12 +80,6 @@
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"pp": {
|
||||
"default": "true",
|
||||
"description": "Pretty-print response.",
|
||||
"location": "query",
|
||||
"type": "boolean"
|
||||
},
|
||||
"prettyPrint": {
|
||||
"default": "true",
|
||||
"description": "Returns response with indentations and line breaks.",
|
||||
@@ -150,12 +139,12 @@
|
||||
"parameterOrder": [],
|
||||
"parameters": {
|
||||
"filter": {
|
||||
"description": "The standard list filter.",
|
||||
"description": "Required. A filter for matching the requested operations.\u003cbr\u003e\u003cbr\u003e The supported formats of \u003cb\u003efilter\u003c/b\u003e are:\u003cbr\u003e To query for specific function: \u003ccode\u003eproject:*,location:*,function:*\u003c/code\u003e\u003cbr\u003e To query for all of the latest operations for a project: \u003ccode\u003eproject:*,latest:true\u003c/code\u003e",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"description": "The name of the operation's parent resource.",
|
||||
"description": "Must not be set.",
|
||||
"location": "query",
|
||||
"type": "string"
|
||||
},
|
||||
@@ -231,7 +220,7 @@
|
||||
"functions": {
|
||||
"methods": {
|
||||
"call": {
|
||||
"description": "Invokes synchronously deployed function. To be used for testing, very\nlimited traffic allowed.",
|
||||
"description": "Synchronously invokes a deployed Cloud Function. To be used for testing\npurposes as very limited traffic is allowed. For more information on\nthe actual limits refer to [API Calls](\nhttps://cloud.google.com/functions/quotas#rate_limits).",
|
||||
"flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:call",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudfunctions.projects.locations.functions.call",
|
||||
@@ -340,7 +329,7 @@
|
||||
]
|
||||
},
|
||||
"generateUploadUrl": {
|
||||
"description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.\n\nWhen uploading source code to the generated signed URL, please follow\nthese restrictions:\n\n* Source file type should be a zip file.\n* Source file size should not exceed 100MB limit.\n\nWhen making a HTTP PUT request, these two headers need to be specified:\n\n* `content-type: application/zip`\n* `x-goog-content-length-range: 0,104857600`",
|
||||
"description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.\n\nWhen uploading source code to the generated signed URL, please follow\nthese restrictions:\n\n* Source file type should be a zip file.\n* Source file size should not exceed 100MB limit.\n* No credentials should be attached - the signed URLs provide access to the\n target bucket using internal service identity; if credentials were\n attached, the identity from the credentials would be used, but that\n identity does not have permissions to upload files to the URL.\n\nWhen making a HTTP PUT request, these two headers need to be specified:\n\n* `content-type: application/zip`\n* `x-goog-content-length-range: 0,104857600`\n\nAnd this header SHOULD NOT be specified:\n\n* `Authorization: Bearer YOUR_TOKEN`",
|
||||
"flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions:generateUploadUrl",
|
||||
"httpMethod": "POST",
|
||||
"id": "cloudfunctions.projects.locations.functions.generateUploadUrl",
|
||||
@@ -463,7 +452,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20180420",
|
||||
"revision": "20190214",
|
||||
"rootUrl": "https://cloudfunctions.googleapis.com/",
|
||||
"schemas": {
|
||||
"CallFunctionRequest": {
|
||||
@@ -509,6 +498,13 @@
|
||||
"description": "The name of the function (as defined in source code) that will be\nexecuted. Defaults to the resource name suffix, if not specified. For\nbackward compatibility, if function with given name is not found, then the\nsystem will try to use function named \"function\".\nFor Node.js this is name of a function exported by the module specified\nin `source_location`.",
|
||||
"type": "string"
|
||||
},
|
||||
"environmentVariables": {
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Environment variables that shall be available during function execution.",
|
||||
"type": "object"
|
||||
},
|
||||
"eventTrigger": {
|
||||
"$ref": "EventTrigger",
|
||||
"description": "A source that fires events in response to a condition in another service."
|
||||
@@ -528,16 +524,25 @@
|
||||
"description": "Output only. Name of the most recent operation modifying the function. If\nthe function status is `DEPLOYING` or `DELETING`, then it points to the\nactive operation.",
|
||||
"type": "string"
|
||||
},
|
||||
"maxInstances": {
|
||||
"description": "The limit on the maximum number of function instances that may coexist at a\ngiven time. This feature is currently in alpha, available only for\nwhitelisted users.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"description": "A user-defined name of the function. Function names must be unique\nglobally and match pattern `projects/*/locations/*/functions/*`",
|
||||
"type": "string"
|
||||
},
|
||||
"network": {
|
||||
"description": "The VPC Network that this cloud function can connect to. It can be\neither the fully-qualified URI, or the short name of the network resource.\nIf the short network name is used, the network must belong to the same\nproject. Otherwise, it must belong to a project within the same\norganization. The format of this field is either\n`projects/{project}/global/networks/{network}` or `{network}`, where\n{project} is a project id where the network is defined, and {network} is\nthe short name of the network.\n\nThis field is mutually exclusive with `vpc_connector` and will be replaced\nby it.\n\nSee [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for\nmore information on connecting Cloud projects.\n\nThis feature is currently in alpha, available only for whitelisted users.",
|
||||
"type": "string"
|
||||
},
|
||||
"runtime": {
|
||||
"description": "The runtime in which the function is going to run. If empty, defaults to\nNode.js 6.",
|
||||
"type": "string"
|
||||
},
|
||||
"serviceAccount": {
|
||||
"description": "Output only. The service account of the function.",
|
||||
"description": "The email of the function's service account. If empty, defaults to\n{project_id}@appspot.gserviceaccount.com.",
|
||||
"type": "string"
|
||||
},
|
||||
"sourceArchiveUrl": {
|
||||
@@ -588,6 +593,10 @@
|
||||
"description": "Output only.\nThe version identifier of the Cloud Function. Each deployment attempt\nresults in a new version of a function being created.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
},
|
||||
"vpcConnector": {
|
||||
"description": "The VPC Network Connector that this cloud function can connect to. It can\nbe either the fully-qualified URI, or the short name of the network\nconnector resource. The format of this field is\n`projects/*/locations/*/connectors/*`\n\nThis field is mutually exclusive with `network` field and will eventually\nreplace it.\n\nSee [the VPC documentation](https://cloud.google.com/compute/docs/vpc) for\nmore information on connecting Cloud projects.\n\nThis feature is currently in alpha, available only for whitelisted users.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -838,7 +847,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"versionId": {
|
||||
"description": "Version id of the function created or updated by an API call.\nThis field is only pupulated for Create and Update operations.",
|
||||
"description": "Version id of the function created or updated by an API call.\nThis field is only populated for Create and Update operations.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
}
|
||||
@@ -883,7 +892,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"versionId": {
|
||||
"description": "Version id of the function created or updated by an API call.\nThis field is only pupulated for Create and Update operations.",
|
||||
"description": "Version id of the function created or updated by an API call.\nThis field is only populated for Create and Update operations.",
|
||||
"format": "int64",
|
||||
"type": "string"
|
||||
}
|
||||
|
242
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-gen.go
generated
vendored
242
vendor/google.golang.org/api/cloudfunctions/v1beta2/cloudfunctions-gen.go
generated
vendored
@@ -1,28 +1,58 @@
|
||||
// Copyright 2019 Google LLC.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Code generated file. DO NOT EDIT.
|
||||
|
||||
// Package cloudfunctions provides access to the Cloud Functions API.
|
||||
//
|
||||
// See https://cloud.google.com/functions
|
||||
// For product documentation, see: https://cloud.google.com/functions
|
||||
//
|
||||
// Creating a client
|
||||
//
|
||||
// Usage example:
|
||||
//
|
||||
// import "google.golang.org/api/cloudfunctions/v1beta2"
|
||||
// ...
|
||||
// cloudfunctionsService, err := cloudfunctions.New(oauthHttpClient)
|
||||
// ctx := context.Background()
|
||||
// cloudfunctionsService, err := cloudfunctions.NewService(ctx)
|
||||
//
|
||||
// In this example, Google Application Default Credentials are used for authentication.
|
||||
//
|
||||
// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
|
||||
//
|
||||
// Other authentication options
|
||||
//
|
||||
// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
|
||||
//
|
||||
// cloudfunctionsService, err := cloudfunctions.NewService(ctx, option.WithAPIKey("AIza..."))
|
||||
//
|
||||
// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
|
||||
//
|
||||
// config := &oauth2.Config{...}
|
||||
// // ...
|
||||
// token, err := config.Exchange(ctx, ...)
|
||||
// cloudfunctionsService, err := cloudfunctions.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
|
||||
//
|
||||
// See https://godoc.org/google.golang.org/api/option/ for details on options.
|
||||
package cloudfunctions // import "google.golang.org/api/cloudfunctions/v1beta2"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
context "golang.org/x/net/context"
|
||||
ctxhttp "golang.org/x/net/context/ctxhttp"
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
gensupport "google.golang.org/api/gensupport"
|
||||
googleapi "google.golang.org/api/googleapi"
|
||||
option "google.golang.org/api/option"
|
||||
htransport "google.golang.org/api/transport/http"
|
||||
)
|
||||
|
||||
// Always reference these packages, just in case the auto-generated code
|
||||
@@ -38,7 +68,6 @@ var _ = googleapi.Version
|
||||
var _ = errors.New
|
||||
var _ = strings.Replace
|
||||
var _ = context.Canceled
|
||||
var _ = ctxhttp.Do
|
||||
|
||||
const apiId = "cloudfunctions:v1beta2"
|
||||
const apiName = "cloudfunctions"
|
||||
@@ -51,6 +80,32 @@ const (
|
||||
CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
|
||||
)
|
||||
|
||||
// NewService creates a new Service.
|
||||
func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
|
||||
scopesOption := option.WithScopes(
|
||||
"https://www.googleapis.com/auth/cloud-platform",
|
||||
)
|
||||
// NOTE: prepend, so we don't override user-specified scopes.
|
||||
opts = append([]option.ClientOption{scopesOption}, opts...)
|
||||
client, endpoint, err := htransport.NewClient(ctx, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
s, err := New(client)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if endpoint != "" {
|
||||
s.BasePath = endpoint
|
||||
}
|
||||
return s, nil
|
||||
}
|
||||
|
||||
// New creates a new Service. It uses the provided http.Client for requests.
|
||||
//
|
||||
// Deprecated: please use NewService instead.
|
||||
// To provide a custom HTTP client, use option.WithHTTPClient.
|
||||
// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
|
||||
func New(client *http.Client) (*Service, error) {
|
||||
if client == nil {
|
||||
return nil, errors.New("client is nil")
|
||||
@@ -213,6 +268,10 @@ type CloudFunction struct {
|
||||
// in `source_location`.
|
||||
EntryPoint string `json:"entryPoint,omitempty"`
|
||||
|
||||
// EnvironmentVariables: Environment variables that shall be available
|
||||
// during function execution.
|
||||
EnvironmentVariables map[string]string `json:"environmentVariables,omitempty"`
|
||||
|
||||
// EventTrigger: A source that fires events in response to a condition
|
||||
// in another service.
|
||||
EventTrigger *EventTrigger `json:"eventTrigger,omitempty"`
|
||||
@@ -231,17 +290,54 @@ type CloudFunction struct {
|
||||
// active operation.
|
||||
LatestOperation string `json:"latestOperation,omitempty"`
|
||||
|
||||
// MaxInstances: The limit on the maximum number of function instances
|
||||
// that may coexist at a
|
||||
// given time. This feature is currently in alpha, available only
|
||||
// for
|
||||
// whitelisted users.
|
||||
MaxInstances int64 `json:"maxInstances,omitempty"`
|
||||
|
||||
// Name: A user-defined name of the function. Function names must be
|
||||
// unique
|
||||
// globally and match pattern `projects/*/locations/*/functions/*`
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// Network: The VPC Network that this cloud function can connect to. It
|
||||
// can be
|
||||
// either the fully-qualified URI, or the short name of the network
|
||||
// resource.
|
||||
// If the short network name is used, the network must belong to the
|
||||
// same
|
||||
// project. Otherwise, it must belong to a project within the
|
||||
// same
|
||||
// organization. The format of this field is
|
||||
// either
|
||||
// `projects/{project}/global/networks/{network}` or `{network}`,
|
||||
// where
|
||||
// {project} is a project id where the network is defined, and {network}
|
||||
// is
|
||||
// the short name of the network.
|
||||
//
|
||||
// This field is mutually exclusive with `vpc_connector` and will be
|
||||
// replaced
|
||||
// by it.
|
||||
//
|
||||
// See [the VPC
|
||||
// documentation](https://cloud.google.com/compute/docs/vpc) for
|
||||
// more information on connecting Cloud projects.
|
||||
//
|
||||
// This feature is currently in alpha, available only for whitelisted
|
||||
// users.
|
||||
Network string `json:"network,omitempty"`
|
||||
|
||||
// Runtime: The runtime in which the function is going to run. If empty,
|
||||
// defaults to
|
||||
// Node.js 6.
|
||||
Runtime string `json:"runtime,omitempty"`
|
||||
|
||||
// ServiceAccount: Output only. The service account of the function.
|
||||
// ServiceAccount: The email of the function's service account. If
|
||||
// empty, defaults to
|
||||
// {project_id}@appspot.gserviceaccount.com.
|
||||
ServiceAccount string `json:"serviceAccount,omitempty"`
|
||||
|
||||
// SourceArchiveUrl: The Google Cloud Storage URL, starting with gs://,
|
||||
@@ -310,6 +406,26 @@ type CloudFunction struct {
|
||||
// results in a new version of a function being created.
|
||||
VersionId int64 `json:"versionId,omitempty,string"`
|
||||
|
||||
// VpcConnector: The VPC Network Connector that this cloud function can
|
||||
// connect to. It can
|
||||
// be either the fully-qualified URI, or the short name of the
|
||||
// network
|
||||
// connector resource. The format of this field
|
||||
// is
|
||||
// `projects/*/locations/*/connectors/*`
|
||||
//
|
||||
// This field is mutually exclusive with `network` field and will
|
||||
// eventually
|
||||
// replace it.
|
||||
//
|
||||
// See [the VPC
|
||||
// documentation](https://cloud.google.com/compute/docs/vpc) for
|
||||
// more information on connecting Cloud projects.
|
||||
//
|
||||
// This feature is currently in alpha, available only for whitelisted
|
||||
// users.
|
||||
VpcConnector string `json:"vpcConnector,omitempty"`
|
||||
|
||||
// ServerResponse contains the HTTP response code and headers from the
|
||||
// server.
|
||||
googleapi.ServerResponse `json:"-"`
|
||||
@@ -832,7 +948,7 @@ type OperationMetadataV1 struct {
|
||||
|
||||
// VersionId: Version id of the function created or updated by an API
|
||||
// call.
|
||||
// This field is only pupulated for Create and Update operations.
|
||||
// This field is only populated for Create and Update operations.
|
||||
VersionId int64 `json:"versionId,omitempty,string"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Request") to
|
||||
@@ -882,7 +998,7 @@ type OperationMetadataV1Beta2 struct {
|
||||
|
||||
// VersionId: Version id of the function created or updated by an API
|
||||
// call.
|
||||
// This field is only pupulated for Create and Update operations.
|
||||
// This field is only populated for Create and Update operations.
|
||||
VersionId int64 `json:"versionId,omitempty,string"`
|
||||
|
||||
// ForceSendFields is a list of field names (e.g. "Request") to
|
||||
@@ -1172,9 +1288,13 @@ func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) {
|
||||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
@@ -1279,15 +1399,18 @@ func (r *OperationsService) List() *OperationsListCall {
|
||||
return c
|
||||
}
|
||||
|
||||
// Filter sets the optional parameter "filter": The standard list
|
||||
// filter.
|
||||
// Filter sets the optional parameter "filter": Required. A filter for
|
||||
// matching the requested operations.<br><br> The supported formats of
|
||||
// <b>filter</b> are:<br> To query for specific function:
|
||||
// <code>project:*,location:*,function:*</code><br> To query for all of
|
||||
// the latest operations for a project:
|
||||
// <code>project:*,latest:true</code>
|
||||
func (c *OperationsListCall) Filter(filter string) *OperationsListCall {
|
||||
c.urlParams_.Set("filter", filter)
|
||||
return c
|
||||
}
|
||||
|
||||
// Name sets the optional parameter "name": The name of the operation's
|
||||
// parent resource.
|
||||
// Name sets the optional parameter "name": Must not be set.
|
||||
func (c *OperationsListCall) Name(name string) *OperationsListCall {
|
||||
c.urlParams_.Set("name", name)
|
||||
return c
|
||||
@@ -1353,9 +1476,13 @@ func (c *OperationsListCall) doRequest(alt string) (*http.Response, error) {
|
||||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/operations")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
return gensupport.SendRequest(c.ctx_, c.s.client, req)
|
||||
}
|
||||
@@ -1405,12 +1532,12 @@ func (c *OperationsListCall) Do(opts ...googleapi.CallOption) (*ListOperationsRe
|
||||
// "parameterOrder": [],
|
||||
// "parameters": {
|
||||
// "filter": {
|
||||
// "description": "The standard list filter.",
|
||||
// "description": "Required. A filter for matching the requested operations.\u003cbr\u003e\u003cbr\u003e The supported formats of \u003cb\u003efilter\u003c/b\u003e are:\u003cbr\u003e To query for specific function: \u003ccode\u003eproject:*,location:*,function:*\u003c/code\u003e\u003cbr\u003e To query for all of the latest operations for a project: \u003ccode\u003eproject:*,latest:true\u003c/code\u003e",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
// "name": {
|
||||
// "description": "The name of the operation's parent resource.",
|
||||
// "description": "Must not be set.",
|
||||
// "location": "query",
|
||||
// "type": "string"
|
||||
// },
|
||||
@@ -1544,9 +1671,13 @@ func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error
|
||||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}/locations")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
@@ -1667,9 +1798,13 @@ type ProjectsLocationsFunctionsCallCall struct {
|
||||
header_ http.Header
|
||||
}
|
||||
|
||||
// Call: Invokes synchronously deployed function. To be used for
|
||||
// testing, very
|
||||
// limited traffic allowed.
|
||||
// Call: Synchronously invokes a deployed Cloud Function. To be used for
|
||||
// testing
|
||||
// purposes as very limited traffic is allowed. For more information
|
||||
// on
|
||||
// the actual limits refer to [API
|
||||
// Calls](
|
||||
// https://cloud.google.com/functions/quotas#rate_limits).
|
||||
func (r *ProjectsLocationsFunctionsService) Call(name string, callfunctionrequest *CallFunctionRequest) *ProjectsLocationsFunctionsCallCall {
|
||||
c := &ProjectsLocationsFunctionsCallCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.name = name
|
||||
@@ -1715,9 +1850,13 @@ func (c *ProjectsLocationsFunctionsCallCall) doRequest(alt string) (*http.Respon
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}:call")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req, err := http.NewRequest("POST", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
@@ -1763,7 +1902,7 @@ func (c *ProjectsLocationsFunctionsCallCall) Do(opts ...googleapi.CallOption) (*
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Invokes synchronously deployed function. To be used for testing, very\nlimited traffic allowed.",
|
||||
// "description": "Synchronously invokes a deployed Cloud Function. To be used for testing\npurposes as very limited traffic is allowed. For more information on\nthe actual limits refer to [API Calls](\nhttps://cloud.google.com/functions/quotas#rate_limits).",
|
||||
// "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions/{functionsId}:call",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudfunctions.projects.locations.functions.call",
|
||||
@@ -1854,9 +1993,13 @@ func (c *ProjectsLocationsFunctionsCreateCall) doRequest(alt string) (*http.Resp
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+location}/functions")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req, err := http.NewRequest("POST", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"location": c.location,
|
||||
@@ -1986,9 +2129,13 @@ func (c *ProjectsLocationsFunctionsDeleteCall) doRequest(alt string) (*http.Resp
|
||||
reqHeaders.Set("User-Agent", c.s.userAgent())
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("DELETE", urls, body)
|
||||
req, err := http.NewRequest("DELETE", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
@@ -2125,9 +2272,13 @@ func (c *ProjectsLocationsFunctionsGenerateDownloadUrlCall) doRequest(alt string
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}:generateDownloadUrl")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req, err := http.NewRequest("POST", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
@@ -2230,12 +2381,23 @@ type ProjectsLocationsFunctionsGenerateUploadUrlCall struct {
|
||||
//
|
||||
// * Source file type should be a zip file.
|
||||
// * Source file size should not exceed 100MB limit.
|
||||
// * No credentials should be attached - the signed URLs provide access
|
||||
// to the
|
||||
// target bucket using internal service identity; if credentials were
|
||||
// attached, the identity from the credentials would be used, but
|
||||
// that
|
||||
// identity does not have permissions to upload files to the
|
||||
// URL.
|
||||
//
|
||||
// When making a HTTP PUT request, these two headers need to be
|
||||
// specified:
|
||||
//
|
||||
// * `content-type: application/zip`
|
||||
// * `x-goog-content-length-range: 0,104857600`
|
||||
//
|
||||
// And this header SHOULD NOT be specified:
|
||||
//
|
||||
// * `Authorization: Bearer YOUR_TOKEN`
|
||||
func (r *ProjectsLocationsFunctionsService) GenerateUploadUrl(parent string, generateuploadurlrequest *GenerateUploadUrlRequest) *ProjectsLocationsFunctionsGenerateUploadUrlCall {
|
||||
c := &ProjectsLocationsFunctionsGenerateUploadUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
|
||||
c.parent = parent
|
||||
@@ -2281,9 +2443,13 @@ func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) doRequest(alt string)
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+parent}/functions:generateUploadUrl")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("POST", urls, body)
|
||||
req, err := http.NewRequest("POST", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"parent": c.parent,
|
||||
@@ -2329,7 +2495,7 @@ func (c *ProjectsLocationsFunctionsGenerateUploadUrlCall) Do(opts ...googleapi.C
|
||||
}
|
||||
return ret, nil
|
||||
// {
|
||||
// "description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.\n\nWhen uploading source code to the generated signed URL, please follow\nthese restrictions:\n\n* Source file type should be a zip file.\n* Source file size should not exceed 100MB limit.\n\nWhen making a HTTP PUT request, these two headers need to be specified:\n\n* `content-type: application/zip`\n* `x-goog-content-length-range: 0,104857600`",
|
||||
// "description": "Returns a signed URL for uploading a function source code.\nFor more information about the signed URL usage see:\nhttps://cloud.google.com/storage/docs/access-control/signed-urls\nOnce the function source code upload is complete, the used signed\nURL should be provided in CreateFunction or UpdateFunction request\nas a reference to the function source code.\n\nWhen uploading source code to the generated signed URL, please follow\nthese restrictions:\n\n* Source file type should be a zip file.\n* Source file size should not exceed 100MB limit.\n* No credentials should be attached - the signed URLs provide access to the\n target bucket using internal service identity; if credentials were\n attached, the identity from the credentials would be used, but that\n identity does not have permissions to upload files to the URL.\n\nWhen making a HTTP PUT request, these two headers need to be specified:\n\n* `content-type: application/zip`\n* `x-goog-content-length-range: 0,104857600`\n\nAnd this header SHOULD NOT be specified:\n\n* `Authorization: Bearer YOUR_TOKEN`",
|
||||
// "flatPath": "v1beta2/projects/{projectsId}/locations/{locationsId}/functions:generateUploadUrl",
|
||||
// "httpMethod": "POST",
|
||||
// "id": "cloudfunctions.projects.locations.functions.generateUploadUrl",
|
||||
@@ -2424,9 +2590,13 @@ func (c *ProjectsLocationsFunctionsGetCall) doRequest(alt string) (*http.Respons
|
||||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
@@ -2582,9 +2752,13 @@ func (c *ProjectsLocationsFunctionsListCall) doRequest(alt string) (*http.Respon
|
||||
}
|
||||
var body io.Reader = nil
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+location}/functions")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("GET", urls, body)
|
||||
req, err := http.NewRequest("GET", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"location": c.location,
|
||||
@@ -2746,9 +2920,13 @@ func (c *ProjectsLocationsFunctionsUpdateCall) doRequest(alt string) (*http.Resp
|
||||
}
|
||||
reqHeaders.Set("Content-Type", "application/json")
|
||||
c.urlParams_.Set("alt", alt)
|
||||
c.urlParams_.Set("prettyPrint", "false")
|
||||
urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta2/{+name}")
|
||||
urls += "?" + c.urlParams_.Encode()
|
||||
req, _ := http.NewRequest("PUT", urls, body)
|
||||
req, err := http.NewRequest("PUT", urls, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
req.Header = reqHeaders
|
||||
googleapi.Expand(req.URL, map[string]string{
|
||||
"name": c.name,
|
||||
|
Reference in New Issue
Block a user