Skip to content

Commit

Permalink
changing for beta version
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisst committed Jul 3, 2019
1 parent ec67b52 commit 7572b07
Showing 1 changed file with 137 additions and 135 deletions.
272 changes: 137 additions & 135 deletions products/cloudrun/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ display_name: Google Cloud Run
versions:
- !ruby/object:Api::Product::Version
name: beta
base_url: https://run.googleapis.com/v1alpha1/
base_url: https://run.googleapis.com/v1beta1/
scopes:
- https://www.googleapis.com/auth/cloud-platform
objects:
Expand All @@ -30,7 +30,7 @@ objects:
guides:
'Official Documentation':
'https://cloud.google.com/run/docs/mapping-custom-domains'
api: 'https://cloud.google.com/run/docs/reference/rest/v1alpha1/projects.locations.domainmappings'
api: 'https://cloud.google.com/run/docs/reference/rest/v1beta1/projects.locations.domainmappings'
description: Resource to hold the state and status of a user's domain mapping.
parameters:
- !ruby/object:Api::Type::String
Expand Down Expand Up @@ -110,7 +110,7 @@ objects:
description: The name of the route that the mapping currently points to.
- !ruby/object:Api::Type::String
name: apiVersion
description: The API version for this call such as "serving.knative.dev/v1alpha1".
description: The API version for this call such as "serving.knative.dev/v1beta1".
- !ruby/object:Api::Type::NestedObject
name: spec
description: The spec for this DomainMapping.
Expand Down Expand Up @@ -222,7 +222,7 @@ objects:
guides:
'Official Documentation':
'https://cloud.google.com/run/docs/'
api: 'https://cloud.google.com/run/docs/reference/rest/v1alpha1/projects.locations.services'
api: 'https://cloud.google.com/run/docs/reference/rest/v1beta1/projects.locations.services'
description: |-
Service acts as a top-level container that manages a set of Routes and
Configurations which implement a network service. Service exists to provide a
Expand Down Expand Up @@ -251,7 +251,7 @@ objects:
Convenience field for metadata.name
- !ruby/object:Api::Type::String
name: apiVersion
description: The API version for this call such as "serving.knative.dev/v1alpha1".
description: The API version for this call such as "serving.knative.dev/v1beta1".
- !ruby/object:Api::Type::String
name: kind
description: This is always set to Service
Expand Down Expand Up @@ -286,9 +286,8 @@ objects:
TimeoutSeconds holds the max duration the instance is allowed for
responding to a request.
Not currently used by Cloud Run.
- !ruby/object:Api::Type::NestedObject
name: container
update_url: TODO_replaceService
- !ruby/object:Api::Type::Array
name: containers
update_verb: :PUT
required: true
description: |-
Expand All @@ -297,144 +296,147 @@ objects:
this Container, including: name, ports, and volumeMounts.
The runtime contract is documented here:
https://github.com/knative/serving/blob/master/docs/runtime-contract.md
properties:
- !ruby/object:Api::Type::String
name: workingDir
description: |-
Container's working directory.
If not specified, the container runtime's default will be used, which
might be configured in the container image.
Cannot be updated.
- !ruby/object:Api::Type::Array
name: args
description: |-
Arguments to the entrypoint.
The docker image's CMD is used if this is not provided.
Variable references $(VAR_NAME) are expanded using the container's
environment. If a variable cannot be resolved, the reference in the input
string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
regardless of whether the variable exists or not.
Cannot be updated.
More info:
https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
item_type: Api::Type::String
- !ruby/object:Api::Type::Array
name: envFrom
description: |-
List of sources to populate environment variables in the container.
The keys defined within a source must be a C_IDENTIFIER. All invalid keys
will be reported as an event when the container is starting. When a key
exists in multiple sources, the value associated with the last source will
take precedence. Values defined by an Env with a duplicate key will take
precedence. Cannot be updated.
item_type: !ruby/object:Api::Type::NestedObject
properties:
- !ruby/object:Api::Type::String
name: prefix
description: |-
An optional identifier to prepend to each key in the ConfigMap. Must be a
C_IDENTIFIER.
- !ruby/object:Api::Type::NestedObject
name: configMapRef
description: |-
The ConfigMap to select from
item_type: !ruby/object:Api::Type::NestedObject
properties:
- !ruby/object:Api::Type::String
name: workingDir
description: |-
Container's working directory.
If not specified, the container runtime's default will be used, which
might be configured in the container image.
Cannot be updated.
- !ruby/object:Api::Type::Array
name: args
description: |-
Arguments to the entrypoint.
The docker image's CMD is used if this is not provided.
Variable references $(VAR_NAME) are expanded using the container's
environment. If a variable cannot be resolved, the reference in the input
string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
regardless of whether the variable exists or not.
Cannot be updated.
More info:
https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
item_type: Api::Type::String
- !ruby/object:Api::Type::Array
name: envFrom
description: |-
List of sources to populate environment variables in the container.
The keys defined within a source must be a C_IDENTIFIER. All invalid keys
will be reported as an event when the container is starting. When a key
exists in multiple sources, the value associated with the last source will
take precedence. Values defined by an Env with a duplicate key will take
precedence. Cannot be updated.
item_type: !ruby/object:Api::Type::NestedObject
properties:
- !ruby/object:Api::Type::Boolean
name: optional
- !ruby/object:Api::Type::String
name: prefix
description: |-
Specify whether the ConfigMap must be defined
An optional identifier to prepend to each key in the ConfigMap. Must be a
C_IDENTIFIER.
- !ruby/object:Api::Type::NestedObject
name: localObjectReference
description: The ConfigMap to select from.
name: configMapRef
description: |-
The ConfigMap to select from
properties:
- !ruby/object:Api::Type::String
name: name
- !ruby/object:Api::Type::Boolean
name: optional
description: |-
Name of the referent.
More info:
https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- !ruby/object:Api::Type::NestedObject
name: secretRef
description: |-
The Secret to select from
properties:
Specify whether the ConfigMap must be defined
- !ruby/object:Api::Type::NestedObject
name: localObjectReference
description: The ConfigMap to select from.
properties:
- !ruby/object:Api::Type::String
name: name
description: |-
Name of the referent.
More info:
https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- !ruby/object:Api::Type::NestedObject
name: localObjectReference
description: The Secret to select from.
name: secretRef
description: |-
The Secret to select from
properties:
- !ruby/object:Api::Type::String
name: name
- !ruby/object:Api::Type::NestedObject
name: localObjectReference
description: The Secret to select from.
properties:
- !ruby/object:Api::Type::String
name: name
description: |-
Name of the referent.
More info:
https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- !ruby/object:Api::Type::Boolean
name: optional
description: |-
Name of the referent.
More info:
https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
- !ruby/object:Api::Type::Boolean
name: optional
Specify whether the Secret must be defined
- !ruby/object:Api::Type::String
name: image
required: true
description: |-
Docker image name.
More info: https://kubernetes.io/docs/concepts/containers/images
- !ruby/object:Api::Type::Array
name: command
description: |-
Entrypoint array. Not executed within a shell.
The docker image's ENTRYPOINT is used if this is not provided.
Variable references $(VAR_NAME) are expanded using the container's
environment. If a variable cannot be resolved, the reference in the input
string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
regardless of whether the variable exists or not.
Cannot be updated.
More info:
https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
item_type: Api::Type::String
- !ruby/object:Api::Type::Array
name: env
description: |-
List of environment variables to set in the container.
Cannot be updated.
item_type: !ruby/object:Api::Type::NestedObject
properties:
- !ruby/object:Api::Type::String
name: name
description: Name of the environment variable. Must be a C_IDENTIFIER.
- !ruby/object:Api::Type::String
name: value
description: |-
Specify whether the Secret must be defined
- !ruby/object:Api::Type::String
name: image
required: true
description: |-
Docker image name.
More info: https://kubernetes.io/docs/concepts/containers/images
- !ruby/object:Api::Type::Array
name: command
description: |-
Entrypoint array. Not executed within a shell.
The docker image's ENTRYPOINT is used if this is not provided.
Variable references $(VAR_NAME) are expanded using the container's
environment. If a variable cannot be resolved, the reference in the input
string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
regardless of whether the variable exists or not.
Cannot be updated.
More info:
https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
item_type: Api::Type::String
- !ruby/object:Api::Type::Array
name: env
description: |-
List of environment variables to set in the container.
Cannot be updated.
item_type: !ruby/object:Api::Type::NestedObject
Variable references $(VAR_NAME) are expanded
using the previous defined environment variables in the container and
any route environment variables. If a variable cannot be resolved,
the reference in the input string will be unchanged. The $(VAR_NAME)
syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
references will never be expanded, regardless of whether the variable
exists or not.
Defaults to "".
- !ruby/object:Api::Type::NestedObject
name: resources
description: |-
Compute Resources required by this container. Used to set values such as max memory
More info:
https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
properties:
- !ruby/object:Api::Type::String
name: name
description: Name of the environment variable. Must be a C_IDENTIFIER.
- !ruby/object:Api::Type::String
name: value
- !ruby/object:Api::Type::KeyValuePairs
name: limits
description: |-
Variable references $(VAR_NAME) are expanded
using the previous defined environment variables in the container and
any route environment variables. If a variable cannot be resolved,
the reference in the input string will be unchanged. The $(VAR_NAME)
syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
references will never be expanded, regardless of whether the variable
exists or not.
Defaults to "".
- !ruby/object:Api::Type::NestedObject
name: resources
description: |-
Compute Resources required by this container. Used to set values such as max memory
More info:
https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
properties:
- !ruby/object:Api::Type::KeyValuePairs
name: limits
description: |-
Limits describes the maximum amount of compute resources allowed.
The values of the map is string form of the 'quantity' k8s type:
https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- !ruby/object:Api::Type::KeyValuePairs
name: requests
description: |-
Requests describes the minimum amount of compute resources required.
If Requests is omitted for a container, it defaults to Limits if that is
explicitly specified, otherwise to an implementation-defined value.
The values of the map is string form of the 'quantity' k8s type:
https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
Limits describes the maximum amount of compute resources allowed.
The values of the map is string form of the 'quantity' k8s type:
https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- !ruby/object:Api::Type::KeyValuePairs
name: requests
description: |-
Requests describes the minimum amount of compute resources required.
If Requests is omitted for a container, it defaults to Limits if that is
explicitly specified, otherwise to an implementation-defined value.
The values of the map is string form of the 'quantity' k8s type:
https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- !ruby/object:Api::Type::Integer
name: containerConcurrency
description: |-
Expand Down

0 comments on commit 7572b07

Please sign in to comment.