Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing output fields to Certificate resource. #6322

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 68 additions & 36 deletions mmv1/products/certificatemanager/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ objects:
update_verb: :PATCH
update_mask: true
description: |
DnsAuthorization represents a HTTP-reachable backend for an DnsAuthorization.
DnsAuthorization represents a HTTP-reachable backend for a DnsAuthorization.
async: !ruby/object:Api::OpAsync
operation: !ruby/object:Api::OpAsync::Operation
path: 'name'
Expand Down Expand Up @@ -69,7 +69,7 @@ objects:
A human-readable description of the resource.
- !ruby/object:Api::Type::KeyValuePairs
name: 'labels'
description: 'Set of label tags associated with the EdgeCache resource.'
description: 'Set of label tags associated with the DNS Authorization resource.'
- !ruby/object:Api::Type::String
name: 'domain'
input: true
Expand All @@ -91,6 +91,7 @@ objects:
output: true
description: |
Fully qualified name of the DNS Resource Record.
E.g. `_acme-challenge.example.com`.
- !ruby/object:Api::Type::String
name: 'type'
output: true
Expand All @@ -109,7 +110,7 @@ objects:
update_verb: :PATCH
update_mask: true
description: |
Certificate represents a HTTP-reachable backend for an Certificate.
Certificate represents a HTTP-reachable backend for a Certificate.
async: !ruby/object:Api::OpAsync
operation: !ruby/object:Api::OpAsync::Operation
path: 'name'
Expand Down Expand Up @@ -143,23 +144,20 @@ objects:
A human-readable description of the resource.
- !ruby/object:Api::Type::KeyValuePairs
name: 'labels'
description: 'Set of label tags associated with the EdgeCache resource.'
- !ruby/object:Api::Type::Enum
description: 'Set of label tags associated with the Certificate resource.'
- !ruby/object:Api::Type::String
name: scope
input: true
description: |
The scope of the certificate.

Certificates with default scope are served from core Google data centers.
DEFAULT: Certificates with default scope are served from core Google data centers.
If unsure, choose this option.

Certificates with scope EDGE_CACHE are special-purposed certificates,
EDGE_CACHE: Certificates with scope EDGE_CACHE are special-purposed certificates,
served from non-core Google data centers.
Currently allowed only for managed certificates.
values:
- :DEFAULT
- :EDGE_CACHE
default_value: :DEFAULT
default_value: DEFAULT
- !ruby/object:Api::Type::NestedObject
name: selfManaged
input: true
Expand Down Expand Up @@ -194,11 +192,6 @@ objects:
Certificate Manager provisions and renews Managed Certificates
automatically, for as long as it's authorized to do so.
properties:
- !ruby/object:Api::Type::String
name: state
output: true
description: |
State of the managed certificate resource.
- !ruby/object:Api::Type::Array
name: domains
input: true
Expand All @@ -212,6 +205,59 @@ objects:
description: |
Authorizations that will be used for performing domain authorization
item_type: Api::Type::String
- !ruby/object:Api::Type::String
name: 'state'
output: true
description: |
A state of this Managed Certificate.
- !ruby/object:Api::Type::NestedObject
name: 'provisioningIssue'
output: true
description: |
Information about issues with provisioning this Managed Certificate.
properties:
- !ruby/object:Api::Type::String
name: 'reason'
output: true
description: |
Reason for provisioning failures.
- !ruby/object:Api::Type::String
name: details
output: true
description: |
Human readable explanation about the issue. Provided to help address
the configuration issues.
Not guaranteed to be stable. For programmatic access use `reason` field.
- !ruby/object:Api::Type::Array
name: 'authorizationAttemptInfo'
output: true
description: |
Detailed state of the latest authorization attempt for each domain
specified for this Managed Certificate.
item_type: !ruby/object:Api::Type::NestedObject
properties:
- !ruby/object:Api::Type::String
name: domain
output: true
description: |
Domain name of the authorization attempt.
- !ruby/object:Api::Type::String
name: 'state'
output: true
description: |
State of the domain for managed certificate issuance.
- !ruby/object:Api::Type::String
name: 'failureReason'
output: true
description: |
Reason for failure of the authorization attempt for the domain.
- !ruby/object:Api::Type::String
name: details
output: true
description: |
Human readable explanation for reaching the state. Provided to help
address the configuration issues.
Not guaranteed to be stable. For programmatic access use `failure_reason` field.
- !ruby/object:Api::Resource
name: 'CertificateMap'
base_url: 'projects/{{project}}/locations/global/certificateMaps'
Expand Down Expand Up @@ -252,7 +298,7 @@ objects:
- !ruby/object:Api::Type::String
name: 'description'
description: |
One or more paragraphs of text description of a certificate map entry.
A human-readable description of the resource.
- !ruby/object:Api::Type::String
name: 'createTime'
output: true
Expand Down Expand Up @@ -354,8 +400,7 @@ objects:
- !ruby/object:Api::Type::String
name: 'description'
description: |
CertificateMapEntry is a list of certificate configurations,
that have been issued for a particular hostname
A human-readable description of the resource.
- !ruby/object:Api::Type::String
name: 'createTime'
output: true
Expand Down Expand Up @@ -384,21 +429,11 @@ objects:
There can be defined up to fifteen certificates in each Certificate Map Entry.
Each certificate must match pattern projects/*/locations/*/certificates/*.
item_type: Api::Type::String
- !ruby/object:Api::Type::Enum
- !ruby/object:Api::Type::String
name: 'state'
output: true
description: |
A serving state of this Certificate Map Entry.

The status is undefined.

The configuration is serving.

Update is in progress. Some frontends may serve this configuration.
values:
- :SERVING_STATE_UNSPECIFIFED
- :ACTIVE
- :PENDING
- !ruby/object:Api::Type::String
name: 'hostname'
description: |
Expand All @@ -408,14 +443,11 @@ objects:
exactly_one_of:
- hostname
- matcher
- !ruby/object:Api::Type::Enum
- !ruby/object:Api::Type::String
name: 'matcher'
exactly_one_of:
- hostname
- matcher
description: |
A predefined matcher for particular cases, other than SNI selection
values:
- :MATCHER_UNSPECIFIED
- :PRIMARY