Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-11-02 14:05:22.270218",
"spec_repo_commit": "ca6b2d8"
"regenerated": "2021-11-03 12:24:07.911637",
"spec_repo_commit": "5a8a968"
},
"v2": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-11-02 14:05:23.700257",
"spec_repo_commit": "ca6b2d8"
"regenerated": "2021-11-03 12:24:09.031262",
"spec_repo_commit": "5a8a968"
}
}
}
25 changes: 19 additions & 6 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9846,22 +9846,34 @@ components:
description: Description of the CI provider.
properties:
pipeline:
description: Name of the pipeline.
type: string
$ref: '#/components/schemas/SyntheticsCIBatchMetadataPipeline'
provider:
description: Name of the CI provider.
type: string
$ref: '#/components/schemas/SyntheticsCIBatchMetadataProvider'
type: object
SyntheticsCIBatchMetadataGit:
description: Git information.
properties:
branch:
description: The branch name.
type: string
commit_sha:
commitSha:
description: The commit SHA.
type: string
type: object
SyntheticsCIBatchMetadataPipeline:
description: Description of the CI pipeline.
properties:
url:
description: URL of the pipeline.
type: string
type: object
SyntheticsCIBatchMetadataProvider:
description: Description of the CI provider.
properties:
name:
description: Name of the CI provider.
type: string
type: object
SyntheticsCITest:
description: Test configuration for Synthetics CI
properties:
Expand Down Expand Up @@ -10659,7 +10671,8 @@ components:
properties:
assertions:
default: []
description: Array of assertions used for the test.
description: Array of assertions used for the test. Required for single
API tests.
example: []
items:
$ref: '#/components/schemas/SyntheticsAssertion'
Expand Down
2 changes: 2 additions & 0 deletions api_docs/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,8 @@ All URIs are relative to *https://api.datadoghq.com*
- [SyntheticsCIBatchMetadata](SyntheticsCIBatchMetadata.md)
- [SyntheticsCIBatchMetadataCI](SyntheticsCIBatchMetadataCI.md)
- [SyntheticsCIBatchMetadataGit](SyntheticsCIBatchMetadataGit.md)
- [SyntheticsCIBatchMetadataPipeline](SyntheticsCIBatchMetadataPipeline.md)
- [SyntheticsCIBatchMetadataProvider](SyntheticsCIBatchMetadataProvider.md)
- [SyntheticsCITest](SyntheticsCITest.md)
- [SyntheticsCITestBody](SyntheticsCITestBody.md)
- [SyntheticsCheckType](SyntheticsCheckType.md)
Expand Down
8 changes: 4 additions & 4 deletions api_docs/v1/SyntheticsCIBatchMetadataCI.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Description of the CI provider.

## Properties

| Name | Type | Description | Notes |
| ------------ | ---------- | ------------------------ | ---------- |
| **pipeline** | **String** | Name of the pipeline. | [optional] |
| **provider** | **String** | Name of the CI provider. | [optional] |
| Name | Type | Description | Notes |
| ------------ | ----------------------------------------------------------------------------- | ----------- | ---------- |
| **pipeline** | [**SyntheticsCIBatchMetadataPipeline**](SyntheticsCIBatchMetadataPipeline.md) | | [optional] |
| **provider** | [**SyntheticsCIBatchMetadataProvider**](SyntheticsCIBatchMetadataProvider.md) | | [optional] |
14 changes: 14 additions & 0 deletions api_docs/v1/SyntheticsCIBatchMetadataPipeline.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# SyntheticsCIBatchMetadataPipeline

Description of the CI pipeline.

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**url** | **String** | URL of the pipeline. | [optional]



14 changes: 14 additions & 0 deletions api_docs/v1/SyntheticsCIBatchMetadataProvider.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# SyntheticsCIBatchMetadataProvider

Description of the CI provider.

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | Name of the CI provider. | [optional]



12 changes: 6 additions & 6 deletions api_docs/v1/SyntheticsTestConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Configuration object for a Synthetic test.

## Properties

| Name | Type | Description | Notes |
| ------------------- | ------------------------------------------------------------------------- | ---------------------------------------------------------------- | ---------- |
| **assertions** | [**List<SyntheticsAssertion>**](SyntheticsAssertion.md) | Array of assertions used for the test. | [optional] |
| **configVariables** | [**List<SyntheticsConfigVariable>**](SyntheticsConfigVariable.md) | Array of variables used for the test. | [optional] |
| **request** | [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | | [optional] |
| **variables** | [**List<SyntheticsBrowserVariable>**](SyntheticsBrowserVariable.md) | Browser tests only - array of variables used for the test steps. | [optional] |
| Name | Type | Description | Notes |
| ------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------- | ---------- |
| **assertions** | [**List<SyntheticsAssertion>**](SyntheticsAssertion.md) | Array of assertions used for the test. Required for single API tests. | [optional] |
| **configVariables** | [**List<SyntheticsConfigVariable>**](SyntheticsConfigVariable.md) | Array of variables used for the test. | [optional] |
| **request** | [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | | [optional] |
| **variables** | [**List<SyntheticsBrowserVariable>**](SyntheticsBrowserVariable.md) | Browser tests only - array of variables used for the test steps. | [optional] |
Original file line number Diff line number Diff line change
Expand Up @@ -28,52 +28,54 @@
public class SyntheticsCIBatchMetadataCI {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_PIPELINE = "pipeline";
private String pipeline;
private SyntheticsCIBatchMetadataPipeline pipeline;

public static final String JSON_PROPERTY_PROVIDER = "provider";
private String provider;
private SyntheticsCIBatchMetadataProvider provider;

public SyntheticsCIBatchMetadataCI pipeline(String pipeline) {
public SyntheticsCIBatchMetadataCI pipeline(SyntheticsCIBatchMetadataPipeline pipeline) {
this.pipeline = pipeline;
this.unparsed |= pipeline.unparsed;
return this;
}

/**
* Name of the pipeline.
* Get pipeline
*
* @return pipeline
*/
@javax.annotation.Nullable
@ApiModelProperty(value = "Name of the pipeline.")
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PIPELINE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPipeline() {
public SyntheticsCIBatchMetadataPipeline getPipeline() {
return pipeline;
}

public void setPipeline(String pipeline) {
public void setPipeline(SyntheticsCIBatchMetadataPipeline pipeline) {
this.pipeline = pipeline;
}

public SyntheticsCIBatchMetadataCI provider(String provider) {
public SyntheticsCIBatchMetadataCI provider(SyntheticsCIBatchMetadataProvider provider) {
this.provider = provider;
this.unparsed |= provider.unparsed;
return this;
}

/**
* Name of the CI provider.
* Get provider
*
* @return provider
*/
@javax.annotation.Nullable
@ApiModelProperty(value = "Name of the CI provider.")
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROVIDER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProvider() {
public SyntheticsCIBatchMetadataProvider getProvider() {
return provider;
}

public void setProvider(String provider) {
public void setProvider(SyntheticsCIBatchMetadataProvider provider) {
this.provider = provider;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class SyntheticsCIBatchMetadataGit {
public static final String JSON_PROPERTY_BRANCH = "branch";
private String branch;

public static final String JSON_PROPERTY_COMMIT_SHA = "commit_sha";
public static final String JSON_PROPERTY_COMMIT_SHA = "commitSha";
private String commitSha;

public SyntheticsCIBatchMetadataGit branch(String branch) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2019-Present Datadog, Inc.
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

package com.datadog.api.v1.client.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;

/** Description of the CI pipeline. */
@ApiModel(description = "Description of the CI pipeline.")
@JsonPropertyOrder({SyntheticsCIBatchMetadataPipeline.JSON_PROPERTY_URL})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SyntheticsCIBatchMetadataPipeline {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_URL = "url";
private String url;

public SyntheticsCIBatchMetadataPipeline url(String url) {
this.url = url;
return this;
}

/**
* URL of the pipeline.
*
* @return url
*/
@javax.annotation.Nullable
@ApiModelProperty(value = "URL of the pipeline.")
@JsonProperty(JSON_PROPERTY_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getUrl() {
return url;
}

public void setUrl(String url) {
this.url = url;
}

/** Return true if this SyntheticsCIBatchMetadataPipeline object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SyntheticsCIBatchMetadataPipeline syntheticsCIBatchMetadataPipeline =
(SyntheticsCIBatchMetadataPipeline) o;
return Objects.equals(this.url, syntheticsCIBatchMetadataPipeline.url);
}

@Override
public int hashCode() {
return Objects.hash(url);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SyntheticsCIBatchMetadataPipeline {\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2019-Present Datadog, Inc.
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

package com.datadog.api.v1.client.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;

/** Description of the CI provider. */
@ApiModel(description = "Description of the CI provider.")
@JsonPropertyOrder({SyntheticsCIBatchMetadataProvider.JSON_PROPERTY_NAME})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SyntheticsCIBatchMetadataProvider {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_NAME = "name";
private String name;

public SyntheticsCIBatchMetadataProvider name(String name) {
this.name = name;
return this;
}

/**
* Name of the CI provider.
*
* @return name
*/
@javax.annotation.Nullable
@ApiModelProperty(value = "Name of the CI provider.")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

/** Return true if this SyntheticsCIBatchMetadataProvider object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SyntheticsCIBatchMetadataProvider syntheticsCIBatchMetadataProvider =
(SyntheticsCIBatchMetadataProvider) o;
return Objects.equals(this.name, syntheticsCIBatchMetadataProvider.name);
}

@Override
public int hashCode() {
return Objects.hash(name);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SyntheticsCIBatchMetadataProvider {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
Loading