Skip to content

Commit

Permalink
Merge pull request #103 from microsoftgraph/v1.0/pipelinebuild/111491
Browse files Browse the repository at this point in the history
Generated  models and request builders
  • Loading branch information
baywet authored Mar 28, 2023
2 parents d021dfd + d700439 commit abc8251
Show file tree
Hide file tree
Showing 11,186 changed files with 63,093 additions and 318,337 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

## [0.20.0] - 2023-03-28

### Changed

- Weekly generation.

## [0.19.0] - 2023-03-21

### Changed
Expand Down
59 changes: 9 additions & 50 deletions lib/admin/admin_request_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,39 +9,25 @@ module MicrosoftGraph
module Admin
##
# Provides operations to manage the admin singleton.
class AdminRequestBuilder
class AdminRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder

##
# Path parameters for the request
@path_parameters
##
# The request adapter to use to execute the requests.
@request_adapter
##
# Provides operations to manage the serviceAnnouncement property of the microsoft.graph.admin entity.
def service_announcement()
return MicrosoftGraph::Admin::ServiceAnnouncement::ServiceAnnouncementRequestBuilder.new(@path_parameters, @request_adapter)
end
##
# Url template to use to build the URL for the current request builder
@url_template
##
## Instantiates a new AdminRequestBuilder and sets the default values.
## @param pathParameters Path parameters for the request
## @param requestAdapter The request adapter to use to execute the requests.
## @param path_parameters Path parameters for the request
## @param request_adapter The request adapter to use to execute the requests.
## @return a void
##
def initialize(path_parameters, request_adapter)
raise StandardError, 'path_parameters cannot be null' if path_parameters.nil?
raise StandardError, 'request_adapter cannot be null' if request_adapter.nil?
@url_template = "{+baseurl}/admin{?%24select,%24expand}"
@request_adapter = request_adapter
path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String
@path_parameters = path_parameters if path_parameters.is_a? Hash
super(path_parameters, request_adapter, "{+baseurl}/admin{?%24select,%24expand}")
end
##
## Get admin
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a Fiber of admin
##
def get(request_configuration=nil)
Expand All @@ -56,7 +42,7 @@ def get(request_configuration=nil)
##
## Update admin
## @param body The request body
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a Fiber of admin
##
def patch(body, request_configuration=nil)
Expand All @@ -71,7 +57,7 @@ def patch(body, request_configuration=nil)
end
##
## Get admin
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a request_information
##
def to_get_request_information(request_configuration=nil)
Expand All @@ -90,7 +76,7 @@ def to_get_request_information(request_configuration=nil)
##
## Update admin
## @param body The request body
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a request_information
##
def to_patch_request_information(body, request_configuration=nil)
Expand Down Expand Up @@ -120,7 +106,7 @@ class AdminRequestBuilderGetQueryParameters
attr_accessor :select
##
## Maps the query parameters names to their encoded names for the URI template parsing.
## @param originalName The original query parameter name in the class.
## @param original_name The original query parameter name in the class.
## @return a string
##
def get_query_parameter(original_name)
Expand All @@ -135,33 +121,6 @@ def get_query_parameter(original_name)
end
end
end

##
# Configuration for the request such as headers, query parameters, and middleware options.
class AdminRequestBuilderGetRequestConfiguration

##
# Request headers
attr_accessor :headers
##
# Request options
attr_accessor :options
##
# Request query parameters
attr_accessor :query_parameters
end

##
# Configuration for the request such as headers, query parameters, and middleware options.
class AdminRequestBuilderPatchRequestConfiguration

##
# Request headers
attr_accessor :headers
##
# Request options
attr_accessor :options
end
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,20 @@ module HealthOverviews
module Count
##
# Provides operations to count the resources in the collection.
class CountRequestBuilder
class CountRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder

##
# Path parameters for the request
@path_parameters
##
# The request adapter to use to execute the requests.
@request_adapter
##
# Url template to use to build the URL for the current request builder
@url_template
##
## Instantiates a new CountRequestBuilder and sets the default values.
## @param pathParameters Path parameters for the request
## @param requestAdapter The request adapter to use to execute the requests.
## @param path_parameters Path parameters for the request
## @param request_adapter The request adapter to use to execute the requests.
## @return a void
##
def initialize(path_parameters, request_adapter)
raise StandardError, 'path_parameters cannot be null' if path_parameters.nil?
raise StandardError, 'request_adapter cannot be null' if request_adapter.nil?
@url_template = "{+baseurl}/admin/serviceAnnouncement/healthOverviews/$count{?%24search,%24filter}"
@request_adapter = request_adapter
path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String
@path_parameters = path_parameters if path_parameters.is_a? Hash
super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews/$count{?%24search,%24filter}")
end
##
## Get the number of the resource
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a Fiber of integer
##
def get(request_configuration=nil)
Expand All @@ -54,7 +40,7 @@ def get(request_configuration=nil)
end
##
## Get the number of the resource
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a request_information
##
def to_get_request_information(request_configuration=nil)
Expand Down Expand Up @@ -83,7 +69,7 @@ class CountRequestBuilderGetQueryParameters
attr_accessor :search
##
## Maps the query parameters names to their encoded names for the URI template parsing.
## @param originalName The original query parameter name in the class.
## @param original_name The original query parameter name in the class.
## @return a string
##
def get_query_parameter(original_name)
Expand All @@ -98,21 +84,6 @@ def get_query_parameter(original_name)
end
end
end

##
# Configuration for the request such as headers, query parameters, and middleware options.
class CountRequestBuilderGetRequestConfiguration

##
# Request headers
attr_accessor :headers
##
# Request options
attr_accessor :options
##
# Request query parameters
attr_accessor :query_parameters
end
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,39 +14,25 @@ module ServiceAnnouncement
module HealthOverviews
##
# Provides operations to manage the healthOverviews property of the microsoft.graph.serviceAnnouncement entity.
class HealthOverviewsRequestBuilder
class HealthOverviewsRequestBuilder < MicrosoftKiotaAbstractions::BaseRequestBuilder

##
# Provides operations to count the resources in the collection.
def count()
return MicrosoftGraph::Admin::ServiceAnnouncement::HealthOverviews::Count::CountRequestBuilder.new(@path_parameters, @request_adapter)
end
##
# Path parameters for the request
@path_parameters
##
# The request adapter to use to execute the requests.
@request_adapter
##
# Url template to use to build the URL for the current request builder
@url_template
##
## Instantiates a new HealthOverviewsRequestBuilder and sets the default values.
## @param pathParameters Path parameters for the request
## @param requestAdapter The request adapter to use to execute the requests.
## @param path_parameters Path parameters for the request
## @param request_adapter The request adapter to use to execute the requests.
## @return a void
##
def initialize(path_parameters, request_adapter)
raise StandardError, 'path_parameters cannot be null' if path_parameters.nil?
raise StandardError, 'request_adapter cannot be null' if request_adapter.nil?
@url_template = "{+baseurl}/admin/serviceAnnouncement/healthOverviews{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}"
@request_adapter = request_adapter
path_parameters = { "request-raw-url" => path_parameters } if path_parameters.is_a? String
@path_parameters = path_parameters if path_parameters.is_a? Hash
super(path_parameters, request_adapter, "{+baseurl}/admin/serviceAnnouncement/healthOverviews{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}")
end
##
## Retrieve the serviceHealth resources from the **healthOverviews** navigation property. This operation provides the health report of all subscribed services for a tenant.
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a Fiber of service_health_collection_response
##
def get(request_configuration=nil)
Expand All @@ -61,7 +47,7 @@ def get(request_configuration=nil)
##
## Create new navigation property to healthOverviews for admin
## @param body The request body
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a Fiber of service_health
##
def post(body, request_configuration=nil)
Expand All @@ -76,7 +62,7 @@ def post(body, request_configuration=nil)
end
##
## Retrieve the serviceHealth resources from the **healthOverviews** navigation property. This operation provides the health report of all subscribed services for a tenant.
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a request_information
##
def to_get_request_information(request_configuration=nil)
Expand All @@ -95,7 +81,7 @@ def to_get_request_information(request_configuration=nil)
##
## Create new navigation property to healthOverviews for admin
## @param body The request body
## @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options.
## @return a request_information
##
def to_post_request_information(body, request_configuration=nil)
Expand Down Expand Up @@ -143,7 +129,7 @@ class HealthOverviewsRequestBuilderGetQueryParameters
attr_accessor :top
##
## Maps the query parameters names to their encoded names for the URI template parsing.
## @param originalName The original query parameter name in the class.
## @param original_name The original query parameter name in the class.
## @return a string
##
def get_query_parameter(original_name)
Expand All @@ -170,33 +156,6 @@ def get_query_parameter(original_name)
end
end
end

##
# Configuration for the request such as headers, query parameters, and middleware options.
class HealthOverviewsRequestBuilderGetRequestConfiguration

##
# Request headers
attr_accessor :headers
##
# Request options
attr_accessor :options
##
# Request query parameters
attr_accessor :query_parameters
end

##
# Configuration for the request such as headers, query parameters, and middleware options.
class HealthOverviewsRequestBuilderPostRequestConfiguration

##
# Request headers
attr_accessor :headers
##
# Request options
attr_accessor :options
end
end
end
end
Expand Down
Loading

0 comments on commit abc8251

Please sign in to comment.